0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/ee/clickhouse/queries
Karl-Aksel Puulmann 3a4beda2ad
Speed up person_distinct_id queries for select clients (#7577)
* Create a new way to get distinct id queries thats gated by team_id

* Update most cases to use the new query

* Convert EVENT_JOIN_PERSON_SQL to new query

* Mostly convert GET_DISTINCT_IDS_BY_PERSON_ID_FILTER

* Mostly convert GET_DISTINCT_IDS_BY_PROPERTY_SQL

* Convert GET_PERSON_IDS_BY_FILTER

* Flag benchmarks

* Resolve circular imports

* Update a snapshot test

* Add a test for the new query logic
2021-12-08 15:59:41 +02:00
..
funnels Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
paths [actor] Funnel correlation actor (#7456) 2021-12-06 09:43:58 -05:00
retention test(retention): add test for retention breakdown with materialized property (#7505) 2021-12-07 15:05:03 +00:00
session_recordings Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
sessions Fix error too deep recursion (#7445) 2021-12-02 12:12:14 +01:00
stickiness Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
test Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
trends Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
__init__.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
actor_base_query.py [actors] Stickiness actor pattern (#7440) 2021-12-02 11:43:20 -05:00
breakdown_props.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
clickhouse_retention.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
column_optimizer.py test(retention): add test for retention breakdown with materialized property (#7505) 2021-12-07 15:05:03 +00:00
event_query.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
groups_join_query.py [actors] Stickiness actor pattern (#7440) 2021-12-02 11:43:20 -05:00
person_distinct_id_query.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
person_query.py [actors] Stickiness actor pattern (#7440) 2021-12-02 11:43:20 -05:00
related_actors_query.py Speed up person_distinct_id queries for select clients (#7577) 2021-12-08 15:59:41 +02:00
util.py [insights—persons] Trends person urls (#6966) 2021-11-10 16:54:51 -05:00