-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to fix various analytics summary issues.
- Fix the daily summaries going to the end of the current month (`set_end_time` needed to be called again). - Eliminate sort order all on query that doesn't make sense and can cause warnings in results. - Fix the unique_user_ids aggregation erroring out if it returned `max_size` buckets, since this query also has other buckets we need to make sure there's room for those. - Remove nested aggregations. These were used in an earlier version, but now that we run separate queries for each time frame (eg, daily or monthly), we no longer need nested aggregations. Removing them may speed things up. - Make sure the cache only caches items with a response (and not nil responses). All of this is still a bit cumbersome and fragile (with the weird caching stuff), so this could all be improved, but trying to get things better working with this existing approach.
- Loading branch information
Showing
4 changed files
with
51 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters