Page MenuHomePhabricator

Use PhabricatorCachedClassMapQuery when querying object PHID types
ClosedPublic

Authored by epriestley on Dec 6 2016, 12:35 PM.
Tags
None
Referenced Files
F13084675: D16997.diff
Wed, Apr 24, 11:16 PM
Unknown Object (File)
Mon, Apr 22, 5:38 AM
Unknown Object (File)
Sat, Apr 20, 9:12 AM
Unknown Object (File)
Thu, Apr 11, 7:49 AM
Unknown Object (File)
Sun, Mar 31, 2:06 PM
Unknown Object (File)
Sat, Mar 30, 3:20 AM
Unknown Object (File)
Wed, Mar 27, 10:52 PM
Unknown Object (File)
Tue, Mar 26, 7:15 PM
Subscribers
None

Details

Summary

Ref T11954. When we query for Conduit tokens, we load the associated objects (users) by PHID.

Currently, querying objects by PHID requires us to load every PHIDType class, when we can know which specific classes we actually need (e.g., just UserPHIDType, if only user PHIDs are present in the query).

Use PhabricatorCachedClassMapQuery to reduce the number of classes we load on this pathway.

Test Plan
  • Used ab -n100 to roughly measure a ~5% performance improvement?
  • This measurement feels a little flimsy but the XHProf profile is cleaner, at least.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Use PhabricatorCachedClassMapQuery when querying object PHID types.
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.Dec 6 2016, 4:21 PM