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

Prevent Big Queries #90

Open
tiger5226 opened this issue Feb 4, 2019 · 0 comments
Open

Prevent Big Queries #90

tiger5226 opened this issue Feb 4, 2019 · 0 comments
Labels
type: discussion A conversation. No specific changes requested type: improvement Existing (or partially existing) functionality needs to be changed

Comments

@tiger5226
Copy link
Collaborator

tiger5226 commented Feb 4, 2019

https://dev.mysql.com/doc/refman/5.7/en/optimizer-hints.html#optimizer-hints-execution-time

We can add optimizer hints to our exposed query API that prevents big queries from running on the instance.

We should also consider requiring LIMIT on all queries performed via the public API. Preferably we use a regex to require <query> LIMIT X( OFFSET Y)

Big queries can cause a memory spike on the machine.

@alyssaoc alyssaoc added type: improvement Existing (or partially existing) functionality needs to be changed type: discussion A conversation. No specific changes requested labels Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: discussion A conversation. No specific changes requested type: improvement Existing (or partially existing) functionality needs to be changed
Projects
None yet
Development

No branches or pull requests

2 participants