?
Solved

How do you calculate the size of the DataBlock?

Posted on 2009-07-08
3
Medium Priority
?
718 Views
Last Modified: 2012-05-07
How do you calculate the size of the DataBlock?
0
Comment
Question by:AJITPADHY
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
garycris earned 1500 total points
ID: 24803670
In order to calcualte the size of a data block you first determine the number of cells in each block.  There is one cell for each dense dimension, stored member, combination.

So if you have a Time dim that is Dense and has the following Stored Members

Time
--Jan
--Feb
--Mar

And and Accounts dimension that is Dense with the following Stored members

Accounts
--Margin
----Sales
----COGS

You would have 16 unique combinations (4 x 4) Take note I included the root members of the dimension as they are stored members in this example.  In real world, many of my upper level members in dense dimensions would be dynamic calc or label only, meaning they are not stored and therefore would not be considered when calculating my block size.  This is a way to optimize my outline and keep my blocks smaller.
So if I have 16 cells, each cell is 8 bytes.  Therefore my block size would be 128 bytes (16 cells x 8 bytes per cell)

If I had a third dense dimension with 10 stored members then I would simply add to my calc
 4 x 4 x 10 = 160 cells x 8 bytes = 1280 bytes.

Notice how my block size gets exponentially larger as I add additional dense dimensions.  Be aware of this and choose your dense dimensions carefully.
 
0
 

Author Closing Comment

by:AJITPADHY
ID: 31600993
thanks
0
 

Author Comment

by:AJITPADHY
ID: 24825513
thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question