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

[0.9.4.2] invalid DELETE query doesn't return error #4404

Closed
caoli5288 opened this issue Oct 11, 2015 · 9 comments
Closed

[0.9.4.2] invalid DELETE query doesn't return error #4404

caoli5288 opened this issue Oct 11, 2015 · 9 comments

Comments

@caoli5288
Copy link

30m ago, I run delete from xxx where time < now() -7d and it lag till now.
By the way, the process influxd always use 200% cpu time.

@caoli5288
Copy link
Author

2 hours past :-)

@beckettsean beckettsean changed the title [0.9.4.2]Query performance issue [0.9.4.2] invalid DELETE query doesn't return error Oct 13, 2015
@beckettsean
Copy link
Contributor

DELETE FROM is not yet a valid query. #1647 is the open issue for making it work.

The query should give a parser error, though.

@caoli5288
Copy link
Author

@beckettsean So how can I delete a specific record?

@beckettsean
Copy link
Contributor

@caoli5288 you cannot delete a specific record.

@caoli5288
Copy link
Author

@beckettsean Never can not?

@beckettsean
Copy link
Contributor

@caoli5288 it is possible to overwrite a point, or to delete a series or measurement, or use a retention policy to bulk delete older data, but InfluxDB does not support the deletion of a single point. It is one of the optimizations that allows for much higher throughput than a traditional RDBMS.

@caoli5288
Copy link
Author

@beckettsean Thanks!

@nathanielc
Copy link
Contributor

I can reproduce the hang on 0.9.4.2 but not in master. @caoli5288 Do you still see the issue on a newer version?

@caoli5288
Copy link
Author

@nathanielc When I knew it was an not supported operation , I never tried it again. THX.

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