Skip to content

perf(database): review and drop unused or redundant indexes #35

Description

@Flickwire-Agent

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: databaseDatabase/schema/query workperformancePerformance and optimization workpoints: 3Estimated effort: 3 story pointspriority: mediumMedium-impact optimizationsprint: backlogReady for future sprint planning

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions