Add indexes to tables improve performance#1891
Conversation
|
Hi @AkramBitar , thanks for submitting this. The issue calls also for a way to verify the indices are in place. Is this possible? |
Signed-off-by: AkramBitar <akram@il.ibm.com>
|
some additional analysis worth including in this PR: Missing indexes (real scan risk)
Redundant indexes (pure write-path cost, no read value)
These get rebuilt on every insert/update for no query benefit; dropping them is a pure win. Lower-confidence, worth an EXPLAIN before touchingidx_recovery_claim_%s (status, recovery_claim_expires_at, stored_at) WHERE status = 1 is used by ClaimPendingTransactions, which needs status = 1 AND stored_at < X ORDER BY stored_at, |
Fixes: 1873
Add the indexes, to improve query performance to the following tables: