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

KB18851: What are the differences between derived tables and true temporary tables in MicroStrategy 10.x?


Stefan Zepeda

Salesforce Solutions Architect • Strategy


KB18851: What are the differences between derived tables and true temporary tables in MicroStrategy 10.x?

In Strategy 10.x, it is possible to use derived tables as the intermediate table type, as shown in the image below:
 

ka02R000000kc0iQAA_0EM440000002Ej0.jpeg

 
A derived table is nothing but a nested `select` statement. It is a virtual table that's calculated on the fly from a select statement. The biggest benefit of using derived tables over using temporary tables is that they require fewer steps, and everything happens in memory instead of a combination of memory and disk. Since no tables are created on the database side, all the processing is performed on the database server's memory. Therefore, using a derived table does not affect performance on the Strategy side, however, it could potentially hurt performance on the database side depending on the complexity of the query.
 
It is advisable to contact the database administrator to determine if and how much will performance in the database side be affected by the use of derived tables.
 


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

June 1, 2017