Files
grocy/migrations/0222.sql

15 lines
240 B
MySQL
Raw Permalink Normal View History

2023-07-31 18:27:53 +02:00
CREATE INDEX ix_stock_log_performance1 ON stock_log (
stock_id,
transaction_type,
amount
);
2023-07-31 18:27:53 +02:00
CREATE INDEX ix_stock_log_performance2 ON stock_log (
product_id,
best_before_date,
purchased_date,
transaction_type,
stock_id,
undone
);