Skip to content

[question] reuse subtree for follow-up query of same user #14937

@hpvd

Description

@hpvd

Reuse common expressions in a query #14196 introduces reuse of subtrees within same query.

When using Pinot for user facing analytics where

  • users slice and dice their data and
  • often a user starts relatively broad (e.g. dashboard standard views) and narrow the results further with multiple steps:
Example:
Simple analyse of website usage
(e.g. number of visitors
or time on page
or number of subpages visited...)
1. start by week,
2. narrow to days,
3. narrow origin country
4. narrow to mobile
  • with freshness requirements of minutes (for this part of pinot usage..)

=> Questions:
A) what are the current possibilities to reuse the result subtree of 1. in 2., of 2. in 3. ... instead of always do an possibly expensive full query?
B) or would this kind of load reduction not look like to be worth it (opinion)?

inspired by
@gortiz in Reuse common expressions in a query #14196

and
Splitting Queries Across Data Warehouses
https://cotera.co/blog/how-era-brings-last-mile-analytics-to-any-data-warehouse-via-duckdb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions