View Issue Details

IDProjectCategoryView StatusLast Update
6194Composrstatspublic2025-04-08 01:44
ReporterPDStig Assigned To 
PrioritynormalSeverityminor 
Status newResolutionopen 
Summary6194: Stats processing uses too much memory
DescriptionStats 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 InformationHigh priority; this affects composr.app and thus needs fixed ASAP.
TagsRoadmap: v11
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored
2025-04-08 01:44:PDStig100 points

Activities

PDStig

2025-04-08 01:33

administrator   ~9909

Automated message: This issue was created using the Report Issue Wizard on the homesite.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2025-04-08 01:34 PDStig Tag Attached: Roadmap: v11
2025-04-08 01:44 PDStig Sponsorship Total 0 => 100