01-26-2020, 03:49 PM
Most time consuming parts was:
1. In expression parsing {parent.name}
2. getting client lib dir twice:
snapshot.get_lib_dir(file_type=file_type, create=True, file_object=file_object, dir_naming=dir_naming) - only to create dirs
snapshot.get_client_lib_dir(file_type=file_type, create=True, file_object=file_object, dir_naming=dir_naming) - for getting client lib dir
Every next iterations of naming takes less time. Most time consuming is cold start.
In my case, i can write {parent.name} in a column of my sobject. And i will remove first get_lib_dir.
1. In expression parsing {parent.name}
2. getting client lib dir twice:
snapshot.get_lib_dir(file_type=file_type, create=True, file_object=file_object, dir_naming=dir_naming) - only to create dirs
snapshot.get_client_lib_dir(file_type=file_type, create=True, file_object=file_object, dir_naming=dir_naming) - for getting client lib dir
Every next iterations of naming takes less time. Most time consuming is cold start.
In my case, i can write {parent.name} in a column of my sobject. And i will remove first get_lib_dir.