Find the ideal dimension order for your TM1 cubes
Install TM1py:
pip install TM1py
Clone or download the optimus-py
Repository from GitHub
- Adjust config.ini to match your TM1 environment
- Create uniquely named views in the relevant cubes
- Execute the
optimuspy.py
- provide 4 arguments: -i (name of the instance) -v (name of the cube view) -e (number of execution) -f (fast mode)
C:\Projects\optimus-py\optimuspy.py -i="tm1srv01" -v="Optimus" -e="10" -f="False"
C:\Projects\optimus-py\optimuspy.py --instance="tm1srv01" --view="Optimus" --executions="15" --fast="False"
OptimusPy determines the ideal dimension order for every cube, based on RAM and query speed. For traceability and custom analysis, Optimus visualizes the results in a csv report and a scatter plot per cube.
ID | Mode | Mean Query Time | RAM | Dimension1 | Dimension2 | Dimension3 | Dimension4 | Dimension5 | Dimension6 | Dimension7 | Dimension8 | Dimension9 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Original Order | 0.00445528 | 259072 | Industry | SalesMeasure | Product | Executive | Business Unit | Customer | Version | State | Time |
2 | Iterations | 0.00379407 | 520184 | SalesMeasure | Customer | Executive | Industry | Product | State | Time | Version | Business Unit |
3 | Iterations | 0.00378995 | 520184 | Business Unit | SalesMeasure | Executive | Industry | Product | State | Time | Version | Customer |
4 | Iterations | 0.00422788 | 520184 | Business Unit | Customer | SalesMeasure | Industry | Product | State | Time | Version | Executive |
5 | Iterations | 0.00458372 | 520184 | Business Unit | Customer | Executive | SalesMeasure | Product | State | Time | Version | Industry |
6 | Iterations | 0.00479290 | 259072 | Business Unit | Customer | Executive | Industry | SalesMeasure | State | Time | Version | Product |
7 | Iterations | 0.00548539 | 259072 | Business Unit | Customer | Executive | Industry | Product | SalesMeasure | Time | Version | State |
- Run on the same machine
- Use big and representative views
- Choose a sensible number of
executions
- Provide enough spare memory on TM1 server
- Fast mode determines first and last position only
- TM1py - A python wrapper for the TM1 REST API
- matplotlib - A comprehensive library for crating visualizations in Python.
This project is licensed under the MIT License - see the LICENSE.md file for details