1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/applications/phid
epriestley 03fb1887d3 Fix file URI perf regression
Summary:
The CSRF changes meant that we can't generate a file URI with just its PHID
anymore, and converted a mathematical function into a service call.
Unfortunately, this caused massive perf problems in some parts of the
application, critically handles, where loading N users became N single gets.
Derp derp derp. Remedy this by doing a single multiget. This substantially
improves performance of many interfaces, particularly the Maniphest task list.

I need to go through the rest of the PhabricatorFileURI callsites and get rid of
them, but I think this is the most substantive one.

Test Plan: Profiled Maniphest task list, queries went from >100 to a handful.
Explosion of multiderp. :/ Looked at some views with profile photos to verify
they still render accurately.

Reviewers: jungejason, nh, tuomaspelkonen, aran

Reviewed By: aran

CC: aran

Differential Revision: 921
2011-09-13 10:33:56 -07:00
..
constants Show more information on revision views 2011-07-16 18:54:13 -07:00
controller Remove PhabricatorPHIDAllocateController 2011-07-08 23:13:18 -07:00
graph Basic task dependencies for Maniphest 2011-08-02 11:16:31 -07:00
handle Fix file URI perf regression 2011-09-13 10:33:56 -07:00
storage Removed "PHID Types" storage object and interface components 2011-03-31 14:01:13 -07:00