EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB5465: What is the difference between warehouse and metadata partition mapping in MicroStrategy Developer 9.4.x-10.x?


Stefan Zepeda

Salesforce Solutions Architect • Strategy


This knowledge base article outlines the difference between warehouse and metadata partition mapping in MicroStrategy Developer 9.4.x-10.x.

Warehouse Partition Mapping
 
Warehouse Partition Mapping tables are used for performance reason.
For example, a fact table in the data warehouse may have two columns: Sales and Years. If a report is run with Sales for the Year = 1999, the query engine will need to search through the entire table for all the years, including 1999, to return the data.
To improve efficiency, Partition Base Tables (PBT) can be created to have Sales for particular years. Assuming that there are 10 years worth of data in the database, 10 different partition base tables need to be created:
- PBT1: Sales for 1991 (Year=1991, Sales=$)
- PBT2: Sales for 1992 (Year=1992, Sales=$)
...
- PBT10: Sales for 2000
A Warehouse Partition Mapping Table (PMT) will then need to be created and will have:

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

 
YearPBTName1991PBT11992PBT2... 2000PBT10

The above PMT is going to tell the engine which table to grab the data from for a particular year. This means that when the report is run for Sales for 1997, then the query engine will first go to the Partition Mapping Table and then find the correct PBT corresponding to the year 1997.
 
Metadata Partition Mapping
 
Metadata Partition Mapping Tables map the attribute elements to its corresponding PBT and performs the same function as the PMT.
To create a Metadata partitioning, follow the steps below:

  1. Go to Schema Objects > Partition, in Strategy Developer 9.4.x-10.x.
  2. Right-click and select new > Partition.
  3. Select the PBT. (i.e., PBT1)
  4. A data slice can be defined. The data slice will be the attribute (i.e., Year) to join from this metadata PMT to the PBT.
  5. Save and close.

By doing this, the equivalent of a PMT in the warehouse has been created, but in the metadata. In theory, both the warehouse and metadata partition mapping tables are accomplishing the same task.


Comment

0 comments

Details

Knowledge Article

Published:

April 10, 2017

Last Updated:

April 10, 2017