-
Notifications
You must be signed in to change notification settings - Fork 49
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
ACK Queue: clear_acked_data() behavior #78
Comments
@employee-1234567 do you mind providing a PR based on you mentioned above? I am pleased if you can do that. Thanks |
Sure, I'd be happy to. Before I make the PR, can you confirm if the propsed SQL is correct? I still feel like I'm missing something or I didn't understand the original intent. Is there a reason the existing code is keeping 1000 ACK'd items around? |
@employee-1234567 please go ahead with your GH-82, the comment #82 (comment) had confirmed it's fine to proceed. Thanks |
Doesn't seem like @employee-1234567 is going to revise the PR. |
Playing around with the
clear_acked_data()
function, it seems to hang on to the last 1000 acked queue items. Why is that? I've already acked the data, yet disk space continued to be used.Looking at the code in question:
It seems that self._MAX_ACKED_LENGTH is a private member constant. Can this not be made tunable by the user (e.g.. a kwarg in init for the class)?
I opened my resulting sqlite data files and manually ran:
Which reduced the file size by several GB. Unless there is some edge case, surely you'd want to do something more like this?
The text was updated successfully, but these errors were encountered: