Closed
Bug 523865
Opened 16 years ago
Closed 16 years ago
Stats pages are running out of memory again.
Categories
(addons.mozilla.org Graveyard :: Statistics, defect)
addons.mozilla.org Graveyard
Statistics
Tracking
(Not tracked)
VERIFIED
FIXED
5.3
People
(Reporter: clouserw, Assigned: clouserw)
Details
Attachments
(1 file)
|
16.03 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
Case in point: https://addons.mozilla.org/en-US/statistics/csv/1865/application?group_by=date
This is going to continue to happen, so last month we had a discussion to get ideas on fixes: https://wiki.mozilla.org/Webdev:Meetings:2009-09-01
I'll ask for infra's input and then we'll make a decision.
Comment 1•16 years ago
|
||
rather than add memory for this one specific use case to all the webheads, seems more logical to limit the size of the date range or plot points. someone who really wants all the data can make a few requests over multiple ranges.
| Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> rather than add memory for this one specific use case to all the webheads,
> seems more logical to limit the size of the date range or plot points. someone
> who really wants all the data can make a few requests over multiple ranges.
No worries, adding RAM wasn't on our list. I'll write a patch that will give a maximum of 6 months of data when requested.
| Assignee | ||
Comment 3•16 years ago
|
||
This adds a start/end date to all the stats queries save a couple contribution ones that I think are only on the admin panel.
This has the side effect of everwhere that we say "All Time" in the stats panel it's actually 6 months. "All Time" is still a useful number though, so I think we should be calculating that offline so we can still provide it (more cron jobs!). If people agree with that, please file another bug.
Assignee: nobody → clouserw
Attachment #408860 -
Flags: review?(fwenzel)
| Assignee | ||
Comment 4•16 years ago
|
||
CCing fligtar & osunick so they are aware of the number changes in comment 3
Comment 5•16 years ago
|
||
Comment on attachment 408860 [details] [diff] [review]
add a six month cap
Looks good. r+ed under the assumption that your reduction to 6 months tops is acceptable.
Attachment #408860 -
Flags: review?(fwenzel) → review+
Comment 6•16 years ago
|
||
Hmm... it's pretty important to have all the data available for the graphs. I don't care so much about the CSV files, except that the graphs pull data from the CSV files.
| Assignee | ||
Comment 7•16 years ago
|
||
Thanks wenzel, r54477
If you want complete info on the graphs we should be taking weekly averages or something. Plotting daily points for several years worth of data is taxing on the server and the client side.
QA: URLs like https://preview.addons.mozilla.org/en-US/statistics/csv/1865/application should return CSVs. Passing start and end through the URL should adjust what you see. You shouldn't be able to retrieve more than 6 months of data.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → 5.3
Comment 8•16 years ago
|
||
Verified FIXED; I tested:
* https://preview.addons.mozilla.org/en-US/statistics/csv/1865/application
* https://preview.addons.mozilla.org/en-US/firefox/statistics/csv/1865/application?start=2009-04-30&end=2009-10-30
* https://preview.addons.mozilla.org/en-US/firefox/statistics/csv/1865/application?start=2001-04-30&end=2009-10-30 ("Error: The requested data is too broad. Dates can be a maximum of six months apart.")
* https://preview.addons.mozilla.org/en-US/firefox/statistics/csv/1865/application?start=2009-04-30&end=2009-11-30 ("Error: The requested data is too broad. Dates can be a maximum of six months apart.")
* https://preview.addons.mozilla.org/en-US/firefox/statistics/csv/1865/application?start=2009-04-30&end=2009 ("invalid date format")
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•