plain-pharmacist-9564
12/17/2024, 11:15 AMorange-terabyte-33302
12/17/2024, 11:15 AMorange-terabyte-33302
12/17/2024, 11:15 AMplain-pharmacist-9564
12/17/2024, 11:18 AMorange-terabyte-33302
12/17/2024, 11:18 AMorange-terabyte-33302
12/17/2024, 11:18 AMsql select min(timestamp) timestamp, session_id, anonymous_id, host, countIf(event = 'page_viewed') page_views from events where timestamp >= '{{ startDate }}' AND timestamp < '{{ endDate }}' group by session_id, anonymous_id, host having page_views < 2
This approach can help limit the data scanned and potentially reduce query complexity [Linen GrowthBook Forum](https://linen.growthbook.io/t/16717820/also-is-there-any-way-that-i-can-add-the-experiment-filters-). 2. Dimensional Analysis: GrowthBook applies automatic grouping to high-cardinality dimensions. For example, in a country dimension, only the top 20 countries will be shown individually, with the rest grouped into an (other)
category. This built-in feature might help reduce the complexity of dimension-related queries [GrowthBook's Statistics](https://docs.growthbook.io/statistics/overview#dimensional-analysis). 3. Experiment Dimensions: Using experiment dimensions instead of user dimensions can lead to simpler queries. If you can include the dimension data in your experiment exposure table, it eliminates the need for additional joins, potentially reducing query complexity [Linen GrowthBook Forum](https://linen.growthbook.io/t/18865415/hi-team-i-see-that-there-2-ways-to-add-dimension-which-one-s). While these suggestions might not directly address the "Suggest Dimension Slices" query, they represent general approaches to query optimization in GrowthBook that could be applicable. For more specific advice on your particular query, it would be best to reach out to GrowthBook support or post your question in their community forum.