2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

Significant increase in query speed for Part list

- Custom list method
- Cache PartCategory objects in memory
This commit is contained in:
Oliver Walters
2020-05-02 09:49:05 +10:00
parent acea0d6e92
commit 4a60da67fd
2 changed files with 63 additions and 7 deletions

View File

@ -101,6 +101,8 @@ class PartSerializer(InvenTreeModelSerializer):
return queryset.prefetch_related(
'category',
'category__parts',
'category__parent',
'stock_items',
'bom_items',
'builds',