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)
Wed, Jul 1, 12:56 PM
Unknown Object (File)
Jun 23 2026, 1:59 AM
Unknown Object (File)
Jun 19 2026, 4:06 PM
Unknown Object (File)
Apr 8 2026, 1:37 PM
Unknown Object (File)
Mar 11 2026, 4:20 AM
Unknown Object (File)
Dec 21 2025, 5:29 PM
Unknown Object (File)
Nov 28 2025, 5:12 AM
Unknown Object (File)
Nov 26 2025, 3:09 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.