Closed Bug 492352 Opened 16 years ago Closed 16 years ago

Available Graphs data should be static, not dynamic, to improve initial load responsiveness

Categories

(Webtools Graveyard :: Graph Server, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: johnath, Assigned: rdoherty)

References

Details

Attachments

(1 file)

When the graph server first loads, a significant chunk of time is spent fetching the test data to populate the Branch, Test, Platform and Machine combo boxes in the "Available Graphs" section. Firebug suggests that the majority of this time is spent without network traffic, waiting for the DB to respond to the query, rather than in actually sending the data across. I suspect it would be a significant responsiveness improvement if, instead, this data was just generated statically once-per-minute/5-minutes/hour and pulled intact by graph server, instead of being regenerated each page load.
Assignee: nobody → rdoherty
OS: Mac OS X → All
Hardware: x86 → All
Attached patch v1Splinter Review
Here's a patch that does just this. Steps: * Make a directory called 'tmp' in server, chmod 777 * Run cron.py (from inside the scripts dir) * Profit! Most of the diff is moving some code around.
Attachment #393267 - Flags: review?(anodelman)
Comment on attachment 393267 [details] [diff] [review] v1 Can I ask that the script not be called cron.py?
(In reply to comment #2) > (From update of attachment 393267 [details] [diff] [review]) > Can I ask that the script not be called cron.py? Sure, we use maintenance.php for AMO, so maintenance.py?
Attachment #393267 - Flags: review?(anodelman) → review+
Comment on attachment 393267 [details] [diff] [review] v1 I'm excited to see what sort of a speedup we get out of this.
changeset a94f0d17b14f
Depends on: 509134
What's blocking pushing this into production?
(In reply to comment #6) > What's blocking pushing this into production? Nothing that I know of. I can file a bug to push this Thurs. night.
I don't think this is working properly in production.
(In reply to comment #8) > I don't think this is working properly in production. I've reopened bug 515461
Ok, looking better. Fetching /api/test now takes 6 seconds for me. I notice there are no headers set on response that would allow the browser to cache the result, nor is the results compressed. I think both of these would make the response on /api/test super snappy.
(In reply to comment #10) > Ok, looking better. Fetching /api/test now takes 6 seconds for me. I notice > there are no headers set on response that would allow the browser to cache the > result, nor is the results compressed. I think both of these would make the > response on /api/test super snappy. I agree, and don't know why they response isn't gzipped as I thought it was previously. Marking this as fixed and will open another bug for the 2 issues listed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
(In reply to comment #11) > (In reply to comment #10) > > Ok, looking better. Fetching /api/test now takes 6 seconds for me. I notice > > there are no headers set on response that would allow the browser to cache the > > result, nor is the results compressed. I think both of these would make the > > response on /api/test super snappy. > > I agree, and don't know why they response isn't gzipped as I thought it was > previously. > > Marking this as fixed and will open another bug for the 2 issues listed. This is bug 518015
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: