Make use of materialized person columns in other insight features #5888
Labels
enhancement
New feature or request
performance
Has to do with performance. For PRs, runs the clickhouse query performance suite
stale
Is your feature request related to a problem?
Person materialized columns are not always being used in all insights, instead an expensive subqueries are made for them.
Examples of this are Lifecycle, Stickiness, Retention insight features. Trends and funnels should work fine.
Describe the solution you'd like
Use materialized columns everywhere.
How to spot this in code: Look for calls to
parse_prop_clauses
withoutis_person_query
orperson_properties_column
calls.In those cases, use
ColumnOptimizer
to decide whether to join person table usingClickhousePersonQuery
.Describe alternatives you've considered
Additional context
Related: #5854
Thank you for your feature request – we love each and every one!
The text was updated successfully, but these errors were encountered: