-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Speed up cohort property filtering #5854
Comments
Not sure if there's a significant performance win for the 1, 2, and 4 here, but overall makes sense seeing the state of 3 (no support for mat columns the current way). |
Update on this: 1-2 are done. 3 is mostly done if a single condition is involved. For solving 3 completely, we depend on implementing "or property filtering" into our insights filtering. I couldn't find the ticket for this, but I know @clarkus has been designing for it. For 4, we need to bring HAS DONE X in $timerange into our core analytics capabilities #2594 I don't think we should aim to solve this directly, instead should solve these prerequisites. |
@EDsCODE @hazzadous Proposal: Let's expose the analytics capability in the API in the coming sprint and use it to close out this issue. This gets us to a more consistent state and unblocks adding these capabilities on the FE side as well. |
The analytics capability meaning # 4? |
This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the |
This issue was closed due to lack of activity. Feel free to reopen if it's still relevant. |
Is your feature request related to a problem?
Cohort queries:
Describe the solution you'd like
Use top-level joins and materialized columns if possible.
To achieve this, I'd propose 'expanding' cohort filters to the appropriate
Property
objects before calling e.g. ClickhouseEventQuery.There are 4 cases to consider:
cohortpeople
cohortpeople
1-2 requires adding a new property type. Proposal type=
staticcohort
4 requires a new property type.
User has done event/action in last X days
. Proposal: Property type="action", add extra (optional) property fields for date range + target count.Not sure how this will affect breakdowns, but similar work might make sense there.
Describe alternatives you've considered
Additional context
Related: #5461
This also paves the way for #2594
cc @Twixes who recently worked on this
cc @EDsCODE for property filtering thoughts
Thank you for your feature request – we love each and every one!
The text was updated successfully, but these errors were encountered: