Closed Bug 1214860 Opened 10 years ago Closed 10 years ago

We fetch a lot of unnecessary data in perfherder compare

Categories

(Tree Management :: Perfherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
jmaher
: review+
mdoglio
: feedback+
Details | Review
We fetch the full range of data incorporating the revisions we care about in perfherder compare, even though we only care about the data corresponding to the two result sets we're worried about. With the database refactoring, we can quickly look up just this subset of data. Let's take advantage of that, and hopefully clean things up a bit at the same time. This will ease implementation of bug 1187000, I hope.
Attached file PR
This change improves the load times from about 6.5s -> 4s on a week old comparison (https://treeherder.mozilla.org/perf.html#/compare?originalProject=mozilla-inbound&originalRevision=906f76d5adcf&newProject=mozilla-inbound&newRevision=3012b7a2c97c). The savings would be even greater on an older comparison. Further improvements are possible, but probably not worth the effort at this juncture.
Assignee: nobody → wlachance
Attachment #8675128 - Flags: review?(jmaher)
Attachment #8675128 - Flags: feedback?(mdoglio)
Comment on attachment 8675128 [details] [review] PR this was pretty simple
Attachment #8675128 - Flags: review?(jmaher) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/9e6e70cd773ab99335c6cd3c8f7257de4f674854 Bug 1214860 - Reduce amount of data loaded in perfherder compare view We only need the data associated with the result sets we are comparing, instead of a large time interval covering it.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8675128 - Flags: feedback?(mdoglio) → feedback+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: