Page MenuHomePhabricator

Add a missing table key to improve performance of "Recently Completed Tasks" query
ClosedPublic

Authored by epriestley on Aug 19 2016, 6:32 PM.
Tags
None
Referenced Files
F15378896: D16423.diff
Thu, Mar 13, 5:35 PM
F15343687: D16423.diff
Mon, Mar 10, 12:19 AM
Unknown Object (File)
Tue, Feb 18, 11:36 AM
Unknown Object (File)
Feb 9 2025, 2:12 AM
Unknown Object (File)
Feb 9 2025, 2:12 AM
Unknown Object (File)
Feb 9 2025, 2:12 AM
Unknown Object (File)
Feb 9 2025, 2:12 AM
Unknown Object (File)
Jan 30 2025, 12:50 AM
Subscribers
None

Details

Summary

Fixes T11490. Currently, this query can not use a key and the table size may be quite large.

Adjust the query so it can use a key for both selection and ordering, and add that key.

Test Plan

Ran EXPLAIN on the old query in production, then added the key and ran EXPLAIN on the new query. Saw key in use, and "rows" examined drop from 29,273 to 15.

Diff Detail

Repository
rP Phabricator
Branch
dkey
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13368
Build 17155: Run Core Tests
Build 17154: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Add a missing table key to improve performance of "Recently Completed Tasks" query.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Aug 19 2016, 6:41 PM
This revision was automatically updated to reflect the committed changes.