cubewise-code / tm1py

TM1py is a Python package that wraps the TM1 REST API in a simple to use library.
http://tm1py.readthedocs.io/en/latest/
MIT License
190 stars 109 forks source link

Evaluate use of multi-threading in `execute_mdx_dataframe`, `execute_mdx_csv` #887

Closed MariusWirtz closed 9 months ago

MariusWirtz commented 1 year ago

As a TM1py user of the write_async function, I can specify how many threads should be used for writing. This allows to speed up the write operation significantly, in an almost linear fashion.

Can we accomplish similar results for data retrieval by parallelizing MDX execution? With release 1.11 the execute_mdx_dataframe, and execute_mdx_csv functions accept a mdxpy query object instead of the raw query string. It should be feasible to break the mdxpy query into smaller sub-queries and execute them in parallel.

MariusWirtz commented 9 months ago

Solved with #935