mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
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:
parent
4d47cb78b3
commit
ec1e118346
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue