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:
@ -101,6 +101,8 @@ class PartSerializer(InvenTreeModelSerializer):
|
||||
|
||||
return queryset.prefetch_related(
|
||||
'category',
|
||||
'category__parts',
|
||||
'category__parent',
|
||||
'stock_items',
|
||||
'bom_items',
|
||||
'builds',
|
||||
|
Reference in New Issue
Block a user