Re: MDX very slow
- From: "Jeje" <willgart@xxxxxxxxxxx>
- Date: Mon, 12 Feb 2007 09:17:42 -0500
from what I understand, you query your cube to extract all the content of the cube, including leaf level and aggregated content into a CSV file...
Sure its slow, there is a lot of text to extract + a lot a calculations to do.
SSAS is really not designed for this purpose.
I really recommend to do a better analysis of what are your requirements, creating a file with both aggregated and detailed content is hard to play with.
what your CSV file become? I think your users will load this file into another database, so send them only the detailed content and they aggregate as they need, and sending the detail is easy to do with a simple SQL query into your source database.
Discuss with the end users and propose options.
"Truc H." <TrucH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:2BC3EABE-0357-45B1-9D57-85F29A0E9ACD@xxxxxxxxxxxxxxxx
We are using straight MDX query to extract large amount of data to un CSV file.
If I have to use SQL queries against the fact table, how can I all the
possible aggregations ?
"Jeje" wrote:
well...
do you really need a so big resulset???
which tool do you use to display this to the end user?
does your users really need thousands of rows in their reports?
some small queries is better because you have to manipulate less data and to
transfer and render less data too. The memory usage is smaller on both the
server and the client side.
if your usage is to extract a large amount of data to a CSV file, or
something like this, then I recommend to create SQL queries against your
source database instead-of a cube and use a tool like SSIS to process and
export the resultset into the flat file
"Truc H." <TrucH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F0E242E9-16A4-4D6F-93A7-01A9614DEC85@xxxxxxxxxxxxxxxx
>I broke the query down by Landing year and now have 16 queries.
> Each of them only take 10 minutes to run (total of 160 minutes instead > of
> 8
> hours!)
> How would you explain that (sum of small queries is less than big > query) ?
> Still it's not very pratical for operational purposes since we will > end
> up
> with thousands
> of queries for large extraction.
> Would it help if I add more aggregations to the cube ?
>
> "Deepak Puri" wrote:
>
>> So that would still be 250K or so cells - maybe the number of cells
>> returned could be slowing things down. Could you, at least for >> testing,
>> break the query into smaller pieces?
>>
>>
>> - Deepak
>>
>> Deepak Puri
>> Microsoft MVP - SQL Server
>>
>> *** Sent via Developersdex http://www.developersdex.com ***
>>
.
- Follow-Ups:
- Re: MDX very slow
- From: Truc H.
- Re: MDX very slow
- References:
- Re: MDX very slow
- From: Deepak Puri
- Re: MDX very slow
- From: Deepak Puri
- Re: MDX very slow
- From: Jeje
- Re: MDX very slow
- Prev by Date: SSAS 2005 - Design Dimensions
- Next by Date: Re: MDX very slow
- Previous by thread: Re: MDX very slow
- Next by thread: Re: MDX very slow
- Index(es):
Relevant Pages
|