Dear Alex,
After we build and save some cubes, we have .cub files with very big sizes (100 MB to 300 MB are usual), when in fact, the really important information is the agregated one (sum values). The viewer is able to show this cubes, but it's really slow in loading and operating.
I only use a table, and the select SQL retrieves only 6 columns (3 dimensions and 3 measures), but for 10.000.000 records. Since the measures I need are only aggregated, the detail data could be dropped when building the cube. I think we could go with a much more smaller size .cub.
If I undertood correctly, it's better to not using GROUP BY in this type of querys, but now, I'm not sure about this. Any way, with the GROUP BY clause in the query the database is too much slow, and produces great load in the server.
(I'm using ExtendedMode="0", as you could see in the XML...)
We'll need any help in order to reduce the .cub size a little, since our users are asking about doing something to accelerate their work.
Thank you so much
Pedro Pablo Paños
Our XML definition (based in example app) is:
<?xml version="1.0" encoding="UTF-8"?>
<PivotCube.Configuration.Data
ConnectionType="1" Connection="Dsn=XXX" Name="expedientes2005"
SQL="
SELECT
r.clprovin AS clprovin,
r.annomes AS annomes,
r.prventa AS prventa,
r.nuenvase AS nuenvase,
r.clsitadm AS clsitadm,
r.nuenvase AS nuenvases,
FROM
fareceta r
WHERE
r.annomes >= '200609'
"
ExcludeZeros="-1"
AlwaysSaveCounts="-1"
ExtendedMode="0"
Inverted_commas="0"
>
<Dimensions Count="3">
<Dim1 AliasName="Provincia" FieldName="clprovin" DisplayName="clprovin" TableType="-2" TableName="FACTTABLE" KeyField="clprovin" LookupField="clprovin" ParentField="" Forecasting="0" ForecastingType="0" DefaultSort="1" WrapTo="0"/>
<Dim2 AliasName="Ano_MES" FieldName="annomes" DisplayName="annomes" TableType="-2" TableName="FACTTABLE" KeyField="annomes" LookupField="annomes" ParentField="" Forecasting="0" ForecastingType="0" DefaultSort="1" WrapTo="0"/>
<Dim4 AliasName="Sit.Adm." FieldName="clsitadm" DisplayName="clsitadm" TableType="-2" TableName="FACTTABLE" KeyField="clsitadm" LookupField="clsitadm" ParentField="" Forecasting="0" ForecastingType="0" DefaultSort="1" WrapTo="0"/>
</Dimensions>
<Measures Count="3">
<Measure1 AliasName="NumRecetas" FieldName="clprovin" CalcType="0" FormatString="##,###,##0" />
<Measure2 AliasName="Importe" FieldName="prventa" CalcType="0" FormatString="##,###,##0.00 €" />
<Measure3 AliasName="Envases" FieldName="nuenvases" CalcType="0" FormatString="##,###,##0" />
</Measures>
</PivotCube.Configuration.Data>