1.11 #901
MariusWirtz
started this conversation in
General
1.11
#901
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Highlights
1. Improved performance #882, #885
With this release TM1py makes better use of existing capabilities in the TM1 server to handle large read and write operations.
Pass
use_blob=True
to thewrite
orwrite_dataframe
function to use the new optimized write mode.On a sample of 1 million cell updates, this performs on par with Turbo Integrator and up to 6x faster than the previous
write
function. #882 (comment)The
write_async
function now makes use ofuse_blob
by default. The number of parallel worker threads in TM1 can be controlled through themax_workers
argument. A reasonable value forslice_size
needs to be provided.E.g. if you are expecting 1 million cell updates, a reasonable choice would be
10
formax_workers
and100000
forslice_size
.On a sample of 1 million cell updates, this performs ~5 times better than plain Turbo Integrator and ~5 times better than the previous
write_async
function. #882 (comment)Pass
use_blob=True
to theexecute_mdx_dataframe
, andexecute_view_dataframe
functions to use the new optimized read mode.On large data sets this performs 20% to 40% better. It also reduces the memory footprint by ~70%. #885 (comment)
2. New
shaped
argument in theexecute_view_dataframe
function #893Pass
shaped=True
to theexecute_mdx_dataframe
, andexecute_view_dataframe
functions to retrieve the data frame in the original shape of the cube view.Please note the months on the columns in the table above
3. Re-authenticate after session timeout #856
Now TM1py will re-authenticate and retry the operation once if the operation failed due to a session timeout.
This is helpful in situations where a TM1py script has been idle for a while and once it attempts to restart interaction with TM1 it fails due to a session timeout.
New Features, Improvements, and Bugfixes
get_elements_dataframe
function by @MariusWirtz in Support hierarchies in get_elements_dataframe #876dtype
to be inferred by pandas with argumentinfer_dtype
inexecute_mdx_dataframe_shaped
by @Kevin-Dekker in Allow dtype to be inferred by pandas with argument infer_dtype in execute_mdx_dataframe_shaped #879Acknowledgments
Big thanks to @cwffonseca, @Kevin-Dekker, and @adscheevel for contributing code to this release, and many others for reporting bugs and requesting new features.
How to upgrade TM1py
Full Changelog: 1.10.2...1.11
This discussion was created from the release 1.11.
Beta Was this translation helpful? Give feedback.
All reactions