Add location and use product range in stock period cache index

The cache is always filtered by location and the product is often filtered
with reduced ids.
This commit is contained in:
Cédric Krier
2024-06-19 12:44:33 +02:00
parent 9a4051ab8c
commit 3ca4615b32
+2 -1
View File
@@ -190,7 +190,8 @@ class Cache(ModelSQL, ModelView):
Index(
t,
(t.period, Index.Equality()),
(t.product, Index.Equality()),
(t.location, Index.Range()),
(t.product, Index.Range()),
include=[t.internal_quantity]),
Index(
t,