subunit2sql/releasenotes/notes/add-missing-metadata-id-indexes-dec66ab17c5c76c9.yaml
Matthew Treinish 03bf76f28a
Add migration for adding missing indexes
This commit adds indexes which were previously implicitly added by the
use of foreign keys on the id columns in the metadata tables. However,
after the last migration to convert uuid primary keys to integers the
foreign keys were all dropped. This commit adds these indexes back to
fix the performance issues with queries involving the metadata tables.
Additionally, the index on the run_at column in the runs table was
overlooked, so this migration adds that back as well.

Change-Id: I162b6daec1116937cf499bd56fde92c44590f1d4
2015-11-30 17:26:11 -05:00

9 lines
252 B
YAML

---
upgrade:
- Contains a DB schema migration to add indexes that were incorrectly
dropped as part of 2822a408bdd0
fixes:
- Fixes performance issue on queries involving the metadata tables by
re-adding indexes that were accidently dropped