View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
6194 | Composr | stats | public | 2025-04-08 01:33 | 2025-04-08 01:44 |
Reporter | PDStig | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | new | Resolution | open | ||
Summary | 6194: Stats processing uses too much memory | ||||
Description | Stats pre-processing can easily eat up too much PHP memory (e.g. the events hook) since buckets are stored by month, and the entire months of every bucket are loaded in. Instead, I think buckets should be stored by day. It will be much easier to process without running into memory issues. * Make stats pre-processing loop by each day when a range of start / end time extends over multiple days (it shouldn't though because of the updated Cron!). * Only load bucket data for the specific day we are processing on that iteration; empty the array of bucket data after each iteration (and updating the database) to conserve memory. * Ensure nothing is modifying stats outside of the designated day; if they are, modify so they don't. | ||||
Additional Information | High priority; this affects composr.app and thus needs fixed ASAP. | ||||
Tags | Roadmap: v11 | ||||
Attach Tags | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
Date Added | Member | Amount Sponsored |
---|---|---|
2025-04-08 01:44: | PDStig | 100 points |