Page MenuHomePhabricator

Add missing indexes to DrydockRepositoryOperation
ClosedPublic

Authored by epriestley on Sep 17 2020, 7:08 PM.
Tags
None
Referenced Files
F15395337: D21465.id51093.diff
Sun, Mar 16, 5:56 AM
F15383488: D21465.id51092.diff
Fri, Mar 14, 4:53 PM
Unknown Object (File)
Sat, Feb 22, 12:32 AM
Unknown Object (File)
Feb 9 2025, 9:53 AM
Unknown Object (File)
Feb 9 2025, 9:53 AM
Unknown Object (File)
Feb 9 2025, 9:53 AM
Unknown Object (File)
Feb 9 2025, 9:53 AM
Unknown Object (File)
Feb 9 2025, 1:59 AM
Subscribers
Restricted Owners Package

Details

Summary

See PHI1885. Repository operations are queryable by state and author, but neither column has a usable key. Add usable keys.

Test Plan

Ran EXPLAIN on a state query. Ran bin/storage upgrade. Ran EXPLAIN again, saw query go from a table scan to a const key lookup.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Sep 17 2020, 7:08 PM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 17 2020, 7:09 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.