Page MenuHomePhabricator

Use PhabricatorCachedClassMapQuery when querying object PHID types
ClosedPublic

Authored by epriestley on Dec 6 2016, 12:35 PM.
Tags
None
Referenced Files
F17799157: D16997.id40889.diff
Fri, Jul 25, 4:36 AM
F17760574: D16997.diff
Tue, Jul 22, 7:43 PM
F17658915: D16997.id40889.diff
Sat, Jul 12, 1:52 PM
F17658843: D16997.id.diff
Sat, Jul 12, 1:47 PM
F17646106: D16997.diff
Sat, Jul 12, 12:27 AM
Unknown Object (File)
Jun 20 2025, 9:15 AM
Unknown Object (File)
Jun 20 2025, 7:00 AM
Unknown Object (File)
Jun 20 2025, 7:00 AM
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