-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add use_blob() to write() function to increase performance #881
Conversation
…nction write_through_blob()
…nction write_through_blob()
…nction write_through_blob()
…nction write_through_blob()
write() use_blob=True
…nction write_through_blob()
floor
Wow, this is great! Thank you @cwffonseca I will immediately get to work to review! |
|
||
# Create a TI processto load CSV data into the cube | ||
dataload_process_name = 'cube.' + cube_name + '.load.fromfile.' + random_key + 'test' | ||
dataload_process = Process(name=dataload_process_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move the process creation to its own method. Perhaps a utility like "create_csv_load_process"
# application_service.delete(path='', application_type='FOLDER', application_name='TM1py') | ||
|
||
# Delete CSV file local | ||
os.remove(export_path_to_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add a parameter to clean up the applications folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss this in #882
Yeah. I think we could make this optional. If the function is called in parallel though, it would be a nuisance if a separate thread, process, or application removed the tm1py folder in though...
Thanks for the review @rclapp. |
closed in favor of #882 |
Closes #848
Added
use_blob
parameter to functionwrite()
, and added underlying functionwrite_through_blob()
to increase performance of writing to cells.This function uploads a CSV file, and then runs a TI process which uses this CSV as data source to load data to a cube.