Page MenuHomePhabricator

Add missing indexes to DrydockRepositoryOperation
ClosedPublic

Authored by epriestley on Sep 17 2020, 7:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 7:55 PM
Unknown Object (File)
Sun, Nov 17, 5:50 PM
Unknown Object (File)
Sun, Nov 17, 1:10 AM
Unknown Object (File)
Oct 2 2024, 1:20 AM
Unknown Object (File)
Sep 6 2024, 11:54 AM
Unknown Object (File)
Sep 6 2024, 11:18 AM
Unknown Object (File)
Sep 4 2024, 11:45 AM
Unknown Object (File)
Aug 28 2024, 11:48 PM
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.