Code Monkey home page Code Monkey logo

optimus-py's Introduction

OptimusPy for TM1

Find the ideal dimension order for your TM1 cubes

Installing

Install TM1py:

pip install TM1py

Clone or download the optimus-py Repository from GitHub

Usage

  • Adjust config.ini to match your TM1 environment
  • Create uniquely named views in the relevant cubes
  • Execute the optimuspy.py
  • provide 6 arguments: -i (name of the instance) -v (name of the cube view) -e (number of execution) -f (fast mode: True or False) -o (output: csv or xlsx) -u (update original order: True or False)
C:\Projects\optimus-py\optimuspy.py -i="tm1srv01" -v="Optimus" -e="10" -f="False" -o="csv" -u=True
C:\Projects\optimus-py\optimuspy.py --instance="tm1srv01" --view="Optimus" --executions="15" --fast="False" --output="csv" --update=True

Output

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

Considerations

  • 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

Built With

  • TM1py - A python wrapper for the TM1 REST API
  • matplotlib - A comprehensive library for crating visualizations in Python.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

optimus-py's People

Contributors

mariuswirtz avatar rclapp avatar tomasfelcman avatar rkvinoth avatar hermie64 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.