mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Improved product average shelf life calculation (references #2283)
This commit is contained in:
14
migrations/0222.sql
Normal file
14
migrations/0222.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE INDEX ix_stock_log_performance1 on stock_log (
|
||||
stock_id,
|
||||
transaction_type,
|
||||
amount
|
||||
);
|
||||
|
||||
CREATE INDEX ix_stock_log_performance2 on stock_log (
|
||||
product_id,
|
||||
best_before_date,
|
||||
purchased_date,
|
||||
transaction_type,
|
||||
stock_id,
|
||||
undone
|
||||
);
|
Reference in New Issue
Block a user