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

KB5356: How to enable Volatile Tables for Teradata in MicroStrategy


Community Admin

• Strategy


This article notes how to use volatile tables with Teradata

A volatile table is a special type of temporary table in Teradata. The use of volatile tables in the Strategy Product Suite improves performance since these tables do not require data dictionary access nor locking and the table definition is kept in cache.
Volatile tables are local to the session, which means that they are dropped automatically when the session is closed. Also, a maximum of 64 volatile tables are allowed for each session.
The Strategy SQL engine can be made to generate volatile tables through the setting the VLDB setting, 'Intermediate Table Type' to 'True temporary table'. This setting is located in the 'Tables' folder. This setting is available at both Database Instance and report levels.
 
The choice of volatile tables versus derived tables is best made by the user. In general, while volatile tables may use up more database memory (because volatile tables are kept in memory until the session is closed), derived tables may have performance issues if the query is very complex. Also, this choice can be made at the individual report level (rather than at the whole database instance level) thus allowing finer control.
In some cases, Strategy will NOT use derived tables, even if the Very Large Database (VLDB) property says so. Reports that by their nature cannot be resolved using derived tables (subqueries) are reports that fall into one of the following categories:

  • Reports that generate certain type of outer joins
  • Reports that use percentage ranking
  • Reports with custom groups
  • Reports that query partitioned base tables
  • Reports that generate SQL queries longer than the supported by the ODBC driver
  • Reports that create data-marts

 
In these cases, the Strategy SQL Engine uses the value set in the VLDB setting, 'Fallback Table Type'. This setting only provides two options - 'Permanent table' or 'True temporary table'
Sometimes difficulties arise when Strategy engine tries to create volatile tables. These difficulties may be related to the way the Data Source Name (DSN) is defined. To overcome such issues, please follow the steps below:

  • Configure the warehouse DSN on the Strategy Intelligence Server machine:
    • Open the DSN that the database instance uses to connect to the warehouse.
ka04W000000OhaBQAS_0EM440000002GEx.gif
    • Make sure that the default database text box is empty. This is important because if a default database is assigned, then Teradata tries to create the volatile table in that space instead of the user's space.
  • Assign a warehouse prefix to all the warehouse tables in the project.
    • To load the warehouse catalog window, open the project and go to Schema > Warehouse Catalog.
    • Select all the warehouse tables that are being used in the project.
    • Go to Tools > Table Prefix and add the required prefix to reference the correct database. Do not forget to type a period (.) after the prefix.
ka04W000000OhaBQAS_0EM440000002GEz.gif
    • Click on 'OK'. The prefix is applied to all the tables that are selected.
ka04W000000OhaBQAS_0EM440000002GFB.gif
    • Click on 'Save and Close.'
  • Close and re-open the project source for the changes to take effect if testing in a 2-tier environment. Stop and restart Strategy Intelligence Server if testing in a 3-tier environment.

 


Comment

0 comments

Details

Knowledge Article

Published:

May 12, 2017

Last Updated:

May 12, 2017