-
-
Notifications
You must be signed in to change notification settings - Fork 1
Count granularity #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be committed? I am ignorant of the ways of wordpress databases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes the dev setup go a lot smoother, imo. I have a practice of clearing out the wp_split_test table, deleting the ACF Pro license key, and then exporting the db (it has admin / password login credentials). I should make a dev setup section in the readme that mentions that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh yes
This PR augments the
wp_split_teststable in order to combine raw event results into daily aggregate numbers. This is meant to consolidate records so that the table doesn't get bogged down over time. Any time a test is run, and any time there's a conversion, a record gets inserted into the table (granularityset toraw,countset to1). This PR adds a cron task that runs twice daily and converts the previous daysrawresults into a singledayrecord with acountset to the sum of the raw results.granularityandcountcolumns to thesplit_teststable (currently we only userawgranularity where each event has a count set to1, but eventually we will aggregate events intoday,weekormonthcounts.)rawrecords from the previous day intodayrecords, twice daily.Plugin.phpsplits functionality into sub-classes.Before running the cron task
After running the cron task