Skip to content
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

CQs should execute one query with all intervals, rather than one query for each interval #6928

Closed
beckettsean opened this issue Jun 28, 2016 · 0 comments

Comments

@beckettsean
Copy link
Contributor

Feature Request

Proposal: [Description of the feature]

CQs should run as efficiently as ad hoc queries.

Current behavior: [What currently happens]

Currently, a CQ like CREATE CQ RESAMPLE FOR 30m...GROUP BY time(5m) will create six individual queries, each covering a single 5 minute interval between now() and now() - 30m.

Desired behavior: [What you would like to happen]

A CQ like CREATE CQ RESAMPLE FOR 30m...GROUP BY time(5m) should create one individual query with a GROUP BY time(5m) clause and a WHERE time clause spanning the current 30 minutes.

Use case: [Why is this important (helps with prioritizing requests)]

Doing one query for each interval is a lot more queries, presumably worse for performance, and definitely not what the user expects to see. Even if the end result is the same, it's confusing and almost certainly less performant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants