Summary
Review observed index usage and remove or replace indexes that are unused or redundant.
Evidence
- Sample showed
job_history_status_idx around 71 MB with 0 observed scans.
sale_history_item_sold_idx and sale_history_item_sold_world_price_idx may overlap.
sale_history_sold_at_idx had few observed scans.
Expected Impact
Medium. Reduces write amplification, index storage, and vacuum work.
Implementation Notes
Collect stats over a representative period before dropping. Consider replacing broad btree time indexes with BRIN or partition pruning.
Acceptance Criteria
- Index removals are backed by observed production usage data.
- Query plans for critical endpoints remain acceptable after changes.
Summary
Review observed index usage and remove or replace indexes that are unused or redundant.
Evidence
job_history_status_idxaround 71 MB with 0 observed scans.sale_history_item_sold_idxandsale_history_item_sold_world_price_idxmay overlap.sale_history_sold_at_idxhad few observed scans.Expected Impact
Medium. Reduces write amplification, index storage, and vacuum work.
Implementation Notes
Collect stats over a representative period before dropping. Consider replacing broad btree time indexes with BRIN or partition pruning.
Acceptance Criteria