Showing posts with label number. Show all posts
Showing posts with label number. Show all posts

Wednesday, March 28, 2012

Poor performance processing data

I have a problem with performance during cube processing (using ProcessData).

When I start processing a number of partitions (in parallel), the network utilisation is initially 100%. Over the next 30 minutes the network utilisation drops to 10 % on the AS box. I have checked the database server and it is a similar story there. The processing eventually completes after a number of hours. Way over what our existing AS 2000 setup would take.

In order to checkout my setup I wrote a .Net 1.1 utility which runs the partition queries in parallel and writes the data to file. It is able to max out the Network utilisation for the duration of the queries on both the AS and SQL boxes.(5 in parallel, totalling 250 million rows came accross in 30 mins). This would seem to prove that the network and SAN are not the issue.

Does anyone any ideas why AS is slowing down as the partition processing progresses.

My setup is as follows:

The cube is on a 4 way 64-bit AS2005 Enterprise SP1 (v 9.0.2047.0) server reading data from a database on 4 way 32-bit SQL 2000 (v8.00.818) SP3 Enterprise

The database contains 27 tables containing fact data. Approx 50 million rows in each. Total 1.25 billion rows. 600GB)

Both machines are SAN attached and the SAN has been check by the supplier and exceeds the service level.

Any help would be appreciated.

Are you using incremental update or full processing of the cube? Incremental update can result in higher utliztion of disks.

Regards

/Thomas

|||

Hi Rob,

You might get some mileage out of the following paper on performance, particularly with regard to Max threads (esp. processing). Also you might want to review your Attribute Relationship and swap to Rigid if you can from the default Flexible. I gained considerable processing perfromance using the Max Threads and Rigid Attribute Relationships.

Paper is at : http://download.microsoft.com/download/4/f/8/4f8f2dc9-a9a7-4b68-98cb-163482c95e0b/SSASProperties.doc#_Toc136412586

Good Luck, Dave.

|||

Thanks for you reply Thomas. No it was full processing using ProcessData.

Besides which, I have now resolved this problem. It was caused by some named calculations that were defined in one of the dimension queries in the DSV. I had defined a few simple concatenations of Product ID and Product Description to use as the member name at each level of the hierarchy. Although I wasn't able to check the SQL I suspect it was doing some kind of Cartesian operation between the view that the dimension was based on and the same view that the named calc's were based on. When I moved the named calculations back to the DB view the problem was completely resolved. Processing now takes 7.5 hours as opposed to 40. An acquaintance has written about a similar issue in his blog: http://blogs.conchango.com/christianwade/archive/2006/07/12/4219.aspx

My advice is be careful with named Calculations in the DSV.

|||

Thanks Dave, I found that paper the other day. I posted the solution just as you reply came up, but I will check out the attribute relationships as you say. Also, I'm not convinced that I understand the cardinality option properly.

With regard to the Max Threads what have you set yours to and what kit have you got?

|||Retracting my comments earlier about the problem in the DSV. I had confused the issue by unbinding a dimension from the cube and the complexity had reduced and therefore speed increased. I now believe my problem to be related to write speed on SAN and not to do with the DSV.

Poor performance processing data

I have a problem with performance during cube processing (using ProcessData).

When I start processing a number of partitions (in parallel), the network utilisation is initially 100%. Over the next 30 minutes the network utilisation drops to 10 % on the AS box. I have checked the database server and it is a similar story there. The processing eventually completes after a number of hours. Way over what our existing AS 2000 setup would take.

In order to checkout my setup I wrote a .Net 1.1 utility which runs the partition queries in parallel and writes the data to file. It is able to max out the Network utilisation for the duration of the queries on both the AS and SQL boxes.(5 in parallel, totalling 250 million rows came accross in 30 mins). This would seem to prove that the network and SAN are not the issue.

Does anyone any ideas why AS is slowing down as the partition processing progresses.

My setup is as follows:

The cube is on a 4 way 64-bit AS2005 Enterprise SP1 (v 9.0.2047.0) server reading data from a database on 4 way 32-bit SQL 2000 (v8.00.818) SP3 Enterprise

The database contains 27 tables containing fact data. Approx 50 million rows in each. Total 1.25 billion rows. 600GB)

Both machines are SAN attached and the SAN has been check by the supplier and exceeds the service level.

Any help would be appreciated.

Are you using incremental update or full processing of the cube? Incremental update can result in higher utliztion of disks.

Regards

/Thomas

|||

Hi Rob,

You might get some mileage out of the following paper on performance, particularly with regard to Max threads (esp. processing). Also you might want to review your Attribute Relationship and swap to Rigid if you can from the default Flexible. I gained considerable processing perfromance using the Max Threads and Rigid Attribute Relationships.

Paper is at : http://download.microsoft.com/download/4/f/8/4f8f2dc9-a9a7-4b68-98cb-163482c95e0b/SSASProperties.doc#_Toc136412586

Good Luck, Dave.

|||

Thanks for you reply Thomas. No it was full processing using ProcessData.

Besides which, I have now resolved this problem. It was caused by some named calculations that were defined in one of the dimension queries in the DSV. I had defined a few simple concatenations of Product ID and Product Description to use as the member name at each level of the hierarchy. Although I wasn't able to check the SQL I suspect it was doing some kind of Cartesian operation between the view that the dimension was based on and the same view that the named calc's were based on. When I moved the named calculations back to the DB view the problem was completely resolved. Processing now takes 7.5 hours as opposed to 40. An acquaintance has written about a similar issue in his blog: http://blogs.conchango.com/christianwade/archive/2006/07/12/4219.aspx

My advice is be careful with named Calculations in the DSV.

|||

Thanks Dave, I found that paper the other day. I posted the solution just as you reply came up, but I will check out the attribute relationships as you say. Also, I'm not convinced that I understand the cardinality option properly.

With regard to the Max Threads what have you set yours to and what kit have you got?

|||Retracting my comments earlier about the problem in the DSV. I had confused the issue by unbinding a dimension from the cube and the complexity had reduced and therefore speed increased. I now believe my problem to be related to write speed on SAN and not to do with the DSV.

Poor Performance in SQL Server 2000 Database with SP3a 8.00.760

Hello All,

In our production database we have 1 Millions number of records in the database. In one database server we have install Service Pack SP3a 8.00.818 version. Performance of the system seems to be good but performance is poor in another server we have installed Service Pack SP3a 8.00.760 version. Whether this problem is due to the version miss match.

Can any DBA can help in sorting this issue?

I'm moving this thread to the SQL Server Database Engine forum.|||

You have the security patch on your first server. Details can be found here

http://support.microsoft.com/kb/821277/en-us

Friday, March 23, 2012

Point label - formatting decimal places

I have calculated a number of fields with the following method:
=SUM(Fields!Asian.Value) / SUM(Fields!Asian.Value + Fields!Alaskan.Value +
Fields!Black.Value + Fields!Hispanic.Value + Fields!Caucasian.Value +
Fields!AmericanIndian.Value + Fields!NotReported.Value) * 100 & "%" & " Asian"
This gives me my Asian population percentage, but when it renders it carries
on so long that I lose my " Asian" off the chart. I just want to limit the
expression to two decimal places. I tried to put the expression to format
the number in the format code as ##.00 as I would a table to limit the
decimal places to two places. What do I need to do to make this happen?
--
Thanks,
ChrisNot sure if you ever got a response.
The formatcode only works if the datatype of your expression is not a
string. In your example however, the expression will generate a string. Try
to use the FormatNumber function inside the calculation and apply the format
code directly:
=FormatNumber( SUM(Fields!Asian.Value) / SUM(Fields!Asian.Value +
Fields!Alaskan.Value + Fields!Black.Value + Fields!Hispanic.Value +
Fields!Caucasian.Value + Fields!AmericanIndian.Value +
Fields!NotReported.Value) * 100, 2) & "%" & " Asian"
See also:
http://msdn.microsoft.com/library/en-us/script56/html/vsfctFormatNumber.asp
Alternatively you could use the Format function which accepts a format code
as argument. E.g.: =Format( ..., "N2")
See also:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctformat.asp
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"cmcdavid" <cmcdavid@.discussions.microsoft.com> wrote in message
news:8E76FFB4-15E6-4ED0-841E-B7C722BC193B@.microsoft.com...
> I have calculated a number of fields with the following method:
> =SUM(Fields!Asian.Value) / SUM(Fields!Asian.Value + Fields!Alaskan.Value +
> Fields!Black.Value + Fields!Hispanic.Value + Fields!Caucasian.Value +
> Fields!AmericanIndian.Value + Fields!NotReported.Value) * 100 & "%" & "
Asian"
> This gives me my Asian population percentage, but when it renders it
carries
> on so long that I lose my " Asian" off the chart. I just want to limit
the
> expression to two decimal places. I tried to put the expression to format
> the number in the format code as ##.00 as I would a table to limit the
> decimal places to two places. What do I need to do to make this happen?
> --
> Thanks,
> Chris

Wednesday, March 21, 2012

PLZ HELP: number of calls at a time

I have a traffic table which contains the following field:

START_DATE_TIME (e.g. 2/14/2006 7:19:54 AM)

and I want to the following;

    how many calls we have every minute (count) starting from 00:00 to 23:59?

    what's the maximam number of calls and what time was it?

-- Create tets table

create table #trafic(

id int identity not null primary key,

start datetime

)

go

--Insert sample data

insert into #trafic values(getdate())

insert into #trafic values(getdate())

insert into #trafic values(dateadd(hour, 1, getdate()))

insert into #trafic values(dateadd(hour, 2, getdate()))

insert into #trafic values(dateadd(hour, 3, getdate()))

insert into #trafic values(dateadd(minute, 10, getdate()))

insert into #trafic values(dateadd(minute, 10, getdate()))

--Show my sample date

select * from #trafic

--Result

id start

-- --

1 2007-03-06 11:14:28.983

2 2007-03-06 11:14:29.000

3 2007-03-06 12:14:29.000

4 2007-03-06 13:14:29.000

5 2007-03-06 14:14:29.000

6 2007-03-06 11:24:29.000

7 2007-03-06 11:24:29.000

--Calls per minute

select count(id)

, cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2)) --Expression for getting hour:minute part of call datetime

from #trafic

group by cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2))

--Result

-- --

2 11:14

2 11:24

1 12:14

1 13:14

1 14:14

(5 row(s) affected)

--Show max calls

select top 1 count(id)

, cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2))

from #trafic

group by cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2))

order by count(id) desc

--Results

-- --

2 11:24

(1 row(s) affected)

--If few minutes have maximuns call number

select top 1 with ties count(id)

, cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2))

from #trafic

group by cast(datepart(hour,start) as varchar(2))+':'+cast( datepart(minute,start) as varchar(2))

order by count(id) desc

--Result

-- --

2 11:14

2 11:24

(2 row(s) affected)

Tuesday, March 20, 2012

Plz Help me out in this query

Declare @.i int
Select @.i=D_Places from MachineTests Where Test_Name='WBC_Count'
--Where D_Places is a user defined Number which defines the scale for
this Test
--While Converting it to Decimal

-- What does the following query do
-- I need to check the flag FORCE_HOLD_NDR if its 1 then
-- conversion is done on Result field of MachineResults Table

Select Case(FORCE_HOLD_NDR)
WHEN 1 THEN convert(DECIMAL(18,@.i), Result)
ELSE Result
END

Quote:

Originally Posted by

>From MachineResults


--Sounds really easy :) but its prompting me an Error
--"Server: Msg 170, Level 15, State 1, Line 5
--"Line 5: Incorrect syntax near '@.i'."

/*
So the problem i m facing is in supplying a variable (@.i in this case)
in Decimal constructor..

Is there any solution to remove this error however the bussiness
requiremt cant be
changed as the scale for the decimal is defined by the user in setup
file and it
can be anything ..

*/
Hope u guys Understand my question

Regards
Mohammad Rehan
Nortec Softwares Pvt LTDAm 17 Nov 2006 05:22:51 -0800 schrieb Roni:
...

Quote:

Originally Posted by

Select Case(FORCE_HOLD_NDR)
WHEN 1 THEN convert(DECIMAL(18,@.i), Result)
ELSE Result
END

Quote:

Originally Posted by

>>From MachineResults


>
--Sounds really easy :) but its prompting me an Error
--"Server: Msg 170, Level 15, State 1, Line 5
--"Line 5: Incorrect syntax near '@.i'."
>


This is not possible, you have to build a string and then execute this
string using EXECUTE or sp_executesql.
Here is an excellent article about it:
http://www.sommarskog.se/dynamic_sql.html
bye,
Helmut

Monday, March 12, 2012

pls help - doubt regarding OLAP cubes.

what is it that decides that a particular OLAP cube is small or large? Is it the number of tuples or the number of dimensions that are present in the cube?

Thank you.

Small or large - are subjective characteristics, what is large for some people is small for others. There are also multiple dimensions by which to judge the size:

1. Number of members in the key attribute of the dimension. I would say that below 1 million is small, from 1 to 10 million is medium and above 10 million is large

2. Total number of attributes in all dimensions. Below 1000 is small, above is large

3. Number of records in the fact table at measure group granularity (i.e. number of records which will remain in the cube, not the number of rows in the fact table which will get reduced due to aggregation/deduplication). Or from another angle, number of rows loaded into the cube every day. I would say that below 10 million rows a day is small, between 10 million to 100 million rows a day is medium, and above 100 million rows a day is large.

There are, of course interesting combinations of the above.

|||thanks a lot !!!|||

Thanks Mosha!!

Could you please shed some light on the "interesting combinations of the above" if you get some time or is it out of scope of this forum?
We are working on at our company on a shared farm service model where upon multiple ssas databases are hosted on a single server.

If a certain app group fits in the large/medium criteria then they have to budget for their own hardware and storage.
Any additional information will be very much appreciated.

Rgds

Hari