Significant increase in query speed for Part list

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

No files matched your search

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