Collect only 'path' field when checking hierarchy

The collect hierarchy plugin was retrieving all fields when getting
existing folders from the database, but only the 'path' field is needed.
This change reduces the amount of data transferred.
This commit is contained in:
jakubjezek001 2025-11-18 13:33:32 +01:00
parent 4d47cb78b3
commit ec1e118346
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -92,7 +92,7 @@ class CollectHierarchy(
existing_entities = {
folder_entity["path"]: folder_entity
for folder_entity in ayon_api.get_folders(
project_name, folder_paths=folder_paths)
project_name, folder_paths=folder_paths, fields={"path"})
}
for folder_path in folder_paths:
# add None value to non-existing folder entities