ClickHouse / ClickHouse/ClickHouse

User Action Cohorts

Open
#33,828 1 comment 0 reactions 0 assignees View on GitHub
comp-aggregate-functions external question
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

Hi Everyone,

I'm looking for way to query user action cohorts.
I went through this solution https://yute.com/post/cohorts-clickhouse/ but it's not good for me.
They are using JOIN between the ActionX and ActionY.
It might work for Account level, but for a specific user, when you got millions of users(and more) the join will just kill the memory.

I could achieve this using the retention function, but only one line at a time.
Doing this for 3 months is a waste of cpu and time.

Is there any other option into doing such query in one time for the entire cohort table?

The scheme is generic: UserId, EventTime, Action
I want to calculate a cohort between 2 dates and 2 different action.

Any idea/solution is welcome.

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.