Page MenuHomePhabricator

Conpherence - use some handle pools for Durable column perf
ClosedPublic

Authored by btrahan on May 8 2015, 10:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:29 PM
Unknown Object (File)
Thu, Apr 25, 1:29 PM
Unknown Object (File)
Thu, Apr 25, 1:29 PM
Unknown Object (File)
Thu, Apr 25, 2:50 AM
Unknown Object (File)
Mon, Apr 22, 5:13 PM
Unknown Object (File)
Sat, Apr 20, 8:03 PM
Unknown Object (File)
Sat, Apr 20, 10:32 AM
Unknown Object (File)
Sat, Apr 20, 10:32 AM
Subscribers

Details

Summary

Ref T7708.

This changes things to $viewer->loadHandles where applicable in the durable column render stack. I saw some big wins on my test data like 34 queries => 24 queries on a newly created room as my default thread.

For my test data, the next big perf win would be to change how remarkup rendering works and try to multiload all objects of a certain type in one shot.
e.g. PhabricatorEmbedFileRemarkupRule implements loadObjects as do all classes which inherit from PhabricatorObjectRemarkupRule. This is because PhabricatorObjectRemarkupRule implements its didMarkupText method using loadObjects, and didMarkupText gets called per transaction over in PhabricatorMarkupEngine->process(). Instead, the loadObjects in didMarkupText should be hitting some cache, and we should do a bulk load for all PhabricatorEmbedFileRemarkupRule that had matches earlier in the rendering stack. ...I think.

Test Plan

carefully looked at "Services" tab in dark console and noted fewer queries with changes post changes versus pre changes

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Conpherence - use some handle pools for Durable column perf.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

I'm going to try to do T7707 soon, too, which should make loading users cheaper and stop a bunch of phabricator_file and phabricator_calendar queries.

This revision is now accepted and ready to land.May 8 2015, 11:18 PM
This revision was automatically updated to reflect the committed changes.