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

Slow continous queries #6788

Closed
bovy89 opened this issue Jun 6, 2016 · 3 comments
Closed

Slow continous queries #6788

bovy89 opened this issue Jun 6, 2016 · 3 comments

Comments

@bovy89
Copy link

bovy89 commented Jun 6, 2016

Hi, I'm facing an issue with continuous queries, because they take too much time to complete their execution.

I have the following continuous queries:

CREATE CONTINUOUS QUERY populate_one_month ON mydb BEGIN SELECT mean("value") AS "value", mean("duration") AS "duration" INTO "one_month".:MEASUREMENT FROM /./ GROUP BY time(15m),domain,host,metric fill(none) END
CREATE CONTINUOUS QUERY populate_six_months ON mydb BEGIN SELECT mean("value") AS "value", mean("duration") AS "duration" INTO "six_months".:MEASUREMENT FROM /./ GROUP BY time(30m),domain,host,metric fill(none) END
CREATE CONTINUOUS QUERY populate_thirteen_months ON mydb BEGIN SELECT mean("value") AS "value", mean("duration") AS "duration" INTO "thirteen_months".:MEASUREMENT FROM /./ GROUP BY time(1h),domain,host,metric fill(none) END

I've tried to execute one of them manually:

SELECT mean("value") AS "value", mean("duration") AS "duration" INTO "thirteen_months".:MEASUREMENT FROM /./ WHERE time >= '2016-06-03T08:30:00Z' AND time < '2016-06-03T09:30:00Z' GROUP BY time(1h),domain,host,metric fill(none)

Without the into clause, it works fine and return in a few of seconds;
With the into clause, it tooks more than 25m to complete and then influx cli says "177104 written".

InfluxDB Version: 0.13
OS: CentOS release 6.7

I'm not observing any cpu or disk workload.

I don't know if it is related to this issue, #6685, but I've tried the nightly release and it didn't resolve my issue.

@toddboom
Copy link
Contributor

@bovy89 Would it be possible for you to provide your dataset for us to test against?

@bovy89
Copy link
Author

bovy89 commented Jun 16, 2016

@toddboom I just sent you the link.

@jsternberg
Copy link
Contributor

This is likely fixed by #7007. This should be in 1.0.0-beta3. If you still have issues with this, please comment so I can reopen this ticket. Thanks.

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

No branches or pull requests

3 participants