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

KB485690: Modify the days the data is held in Platform Analytics Repository for fact tables


Ramses Castro Cabrera

Senior Cloud Support Engineer II • MicroStrategy


This article outlines how to modify the days the data is held in Platform Analytics Repository for fact tables.

Symptom


Platform Analytics makes use of fact tables for displaying data contained in the Platform Analytics Repository. Also, for the PostgreSQL warehouse, we create historical tables for some fact tables whose data amount may be very large. An example of this is the access_transactions and the fact_sql_stats tables. The historical table's name starts with the prefix "historical_".  
By default, Platform Analytics keeps all the fact tables in its Repository for a period of 180 days. After this number of days is surpassed, all the data contained in the fact tables will pass to the historical fact tables.
 

Cause 


This is a default setting provided by Strategy to guarantee an adequate performance of Platform Analytics. In this way we avoid the saturation of the fact tables, and it makes it easier and faster to retrieve the data. 
 

Action


It is possible to modify the number of days that the data will be kept in the fact tables before moving to historical fact tables. For this, we need to: 

  1. Stop the Strategy Platform Analytics Consumer service. 
  2. Open the PAConsumerConfig.yaml file, found in \MicroStrategy\PlatformAnalytics\conf\PAConsumerConfig.yaml 
  3. Modify the variable currentFactDataKeepDays: 180 The setting is by default 180 days. This value can be changed at the discretion of the user. 
  4. Save the file and start the Strategy Platform Analytics Consumer service. 
ka0PW0000000vmHYAQ_0EM4W000005nLGt.png

Please note that if old data (older than currentFactDataKeepDays) went to historical PA tables, then this will not return to current tables on its own. It will be needed to follow a process to move Platform Analytics historical tables to current tables. Please contact Strategy Support Team for more details. 
NOTE: Be aware that increasing too much this value, keeping the data in fact tables for a longer period, may lead to a performance repercussion or a bigger amount of memory will be needed depending on the amount of data managed and contained in the tables.  
 


Comment

0 comments

Details

Knowledge Article

Published:

September 28, 2022

Last Updated:

February 26, 2024