Skip to content

Draft: Updates Sessions cube schema

Surabhi Suman requested to merge 443624-sessions-count into main

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

  1. Update cube schema in docker.
  2. Product analytics audience dashboards should work normally and should not time out.
  3. 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.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/443624

Edited by Surabhi Suman

Merge request reports