You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in most cases this is not an issue but if a project has something like 300 datasets then every call is 300 x (number of calls in init_files)
so at least 300.
Future
A "best practice" example of doing the above instead of iterating over list?
Something like adding init false flag in the list concept too, e.g. so depending on use case if person doesn't need files
More generally we may need to reflect on "lazy loading" / expectations around one SDK call being "about" one API call
The text was updated successfully, but these errors were encountered:
Solution
init_default_directory = False
when inittingProject()
.get()
and.new()
methods(this is instead of manually getting list and checking matches)
Context
existing_dirs = project.directory.get_directory_list()
will result in n number of calls for every dataset in the project
because eventually it calls init_files()
https://github.com/diffgram/python-sdk/blob/main/sdk/diffgram/core/directory.py#L76
in most cases this is not an issue but if a project has something like 300 datasets then every call is 300 x (number of calls in init_files)
so at least 300.
Future
More generally we may need to reflect on "lazy loading" / expectations around one SDK call being "about" one API call
The text was updated successfully, but these errors were encountered: