Draft: Updates Sessions cube schema
What does this MR do and why?
Previous cube schema Sessions
sometimes returned unmerged results(delay in merging by clickhouse) when queried which resulted in decreasing sessions count for the same period. An attempt to GROUP the data with session_id
led to queries timeout in product with millions of rows. This modifies cube schema Sessions
with aggregated values and filters the data so that cube query don't return unmerged sessions data.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Update cube schema in docker.
- Product analytics audience dashboards should work normally and should not time out.
- Manually querying Sessions cube for all existing queries should work fine.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to https://gitlab.com/gitlab-org/gitlab/-/issues/443624
Edited by Surabhi Suman