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)
Webtools Graveyard
Graph Server
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: johnath, Assigned: rdoherty)
References
Details
Attachments
(1 file)
21.58 KB,
patch
|
anodelman
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•16 years ago
|
Assignee: nobody → rdoherty
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 1•16 years ago
|
||
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 2•16 years ago
|
||
Comment on attachment 393267 [details] [diff] [review]
v1
Can I ask that the script not be called cron.py?
Assignee | ||
Comment 3•16 years ago
|
||
(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?
Updated•16 years ago
|
Attachment #393267 -
Flags: review?(anodelman) → review+
Comment 4•16 years ago
|
||
Comment on attachment 393267 [details] [diff] [review]
v1
I'm excited to see what sort of a speedup we get out of this.
Comment 6•16 years ago
|
||
What's blocking pushing this into production?
Assignee | ||
Comment 7•16 years ago
|
||
(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.
Comment 8•16 years ago
|
||
I don't think this is working properly in production.
Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #8)
> I don't think this is working properly in production.
I've reopened bug 515461
Comment 10•16 years ago
|
||
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.
Assignee | ||
Comment 11•16 years ago
|
||
(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
Comment 12•16 years ago
|
||
(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
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•