-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Delete Thorttling #1609
Comments
I think there are two open questions here.
|
There's some really low hanging fruit for optimizing deletes. I suspect this won't be an issue once we fix them. |
I fear that everything we can do with respect to priorities might not have the desired effects when it comes to write queries. @jdoliner: Do you have something specific in mind? @wojons: What size is your database? Do you know if it fits in the cache or if there is disk i/o involved? |
@coffeemug a priority flag for everything would be SUPER useful i think even on queries because some queries i expect to take a long time and dont care if its takes a long time. but there are some things that you want to be super fast. @danielmewes the database could fit in cache if i allocated more space to the vm. but the tables are normally 4-16gb in size but soon i will keep more then 2 keeps of data and it wont fit so its all disk based also. |
Regarding the We should keep the idea in mind, but it requires a lot of testing and probably a number of careful changes to actually become a useful and reliable feature. Edit: |
@wojons: As a work-around, would it be an option to divide the delete into smaller batches from the application side? For example you could run something like |
Well, one optimization is that we could turn |
@jdoliner: That of course would make a lot sense. |
Moving to backlog. We'll look into this after #1762 is fixed, but this is generally outside the scope of the LTS release. |
I am hopping there is a way for a feature to throttle deletes. I am partioning my data by week. overall i dont care if it takes a week to delete the last weeks data. What happenes is i delete the last week and it locks up the servers since they are racing to delete. Maybe some sort of flag for slow delete or delete yeailding
The text was updated successfully, but these errors were encountered: