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
Unknown Object (File)
Tue, Dec 17, 8:27 PM
Unknown Object (File)
Sun, Dec 15, 3:40 PM
Unknown Object (File)
Fri, Dec 13, 10:38 PM
Unknown Object (File)
Thu, Dec 12, 6:25 AM
Unknown Object (File)
Tue, Dec 10, 3:22 AM
Unknown Object (File)
Wed, Nov 27, 6:29 PM
Unknown Object (File)
Nov 21 2024, 10:34 PM
Unknown Object (File)
Nov 21 2024, 1:06 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.