Number of fed cells in }statsbycube
Posted: Thu Sep 11, 2014 5:13 am
I was trying to understand overfeeding and started looking into “}statsbycube” cube. In detail, what the values “no.of. Fed cells” refers t etc etc..? This could be used to check overfeeding in cubes and then restricting rules in possible cases only to specific elements (instead of all elements ) of a dimension. Probably, this will reduce no.of fed cells/memory used by the feeders for that cube. Please add your comments or correct me if my understanding is not correct.
Cube 1 Dim1: 10 elements (Elem1, Elem2….)
Dim 2: 3 elements (s1, s2, s3)
Dim 3: 1 element (Measure)
#Rule in Cube 1 ( no other rule for this cube) :
[‘Measure’] = N: 100* DB (cube2,!dim1,!dim2,’Amount’);
#Feeder in Cube 2:
[‘Amount’] => DB (Cube1, !dim1,!dim2,’Measure’);
as we can see rule applies to all 10 elements of dim1, all 3 elements of dim2 in Cube 1. So, no.of. Fed cells should count to 10*3*1 = 30 cells
Q1: Is my understanding correct? (Or are there any other factors included while calculating total no.of. Fed cells for a cube. Specifically, I’m referring to "no.of. fed cells" value in “}statsbycube” cube)
####
Now, if we change the rule in Cube1 to restrict this rule only Elem1 of dim1 as below, and keeping the feeders in Cube 2 untouched.
[‘Elem1’,’Measure’] = N:100* DB (cube2,!dim1,!dim2,’Amount’);
Q2: will this reduce "no.of. fed cells" value in “}statsbycube” for Cube1 to 3 cells (instead of 30 cells) in ?
Thanks in advance for all your comments and help.!!
Best Regards,
Cube 1 Dim1: 10 elements (Elem1, Elem2….)
Dim 2: 3 elements (s1, s2, s3)
Dim 3: 1 element (Measure)
#Rule in Cube 1 ( no other rule for this cube) :
[‘Measure’] = N: 100* DB (cube2,!dim1,!dim2,’Amount’);
#Feeder in Cube 2:
[‘Amount’] => DB (Cube1, !dim1,!dim2,’Measure’);
as we can see rule applies to all 10 elements of dim1, all 3 elements of dim2 in Cube 1. So, no.of. Fed cells should count to 10*3*1 = 30 cells
Q1: Is my understanding correct? (Or are there any other factors included while calculating total no.of. Fed cells for a cube. Specifically, I’m referring to "no.of. fed cells" value in “}statsbycube” cube)
####
Now, if we change the rule in Cube1 to restrict this rule only Elem1 of dim1 as below, and keeping the feeders in Cube 2 untouched.
[‘Elem1’,’Measure’] = N:100* DB (cube2,!dim1,!dim2,’Amount’);
Q2: will this reduce "no.of. fed cells" value in “}statsbycube” for Cube1 to 3 cells (instead of 30 cells) in ?
Thanks in advance for all your comments and help.!!
Best Regards,