From ec1e1183463a9c5153718fcaea06c38d80ca0877 Mon Sep 17 00:00:00 2001 From: jakubjezek001 Date: Tue, 18 Nov 2025 13:33:32 +0100 Subject: [PATCH] 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. --- client/ayon_core/plugins/publish/collect_hierarchy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/plugins/publish/collect_hierarchy.py b/client/ayon_core/plugins/publish/collect_hierarchy.py index 145c2beb9b..7c2b2fd5d1 100644 --- a/client/ayon_core/plugins/publish/collect_hierarchy.py +++ b/client/ayon_core/plugins/publish/collect_hierarchy.py @@ -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