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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

Details

Attachments

(1 file)

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.
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.
(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.
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)
CCing fligtar & osunick so they are aware of the number changes in comment 3
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+
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.
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
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: