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

Add shrink_disk_usage for sqlite3 base queues #182

Merged
merged 1 commit into from
Apr 23, 2022
Merged

Conversation

peter-wangxu
Copy link
Owner

Performs a VACUUM against the sqlite, and rebuild the database file, this usually takes long time and frees a lot of disk space after get()

fixes #176

Performs a ``VACUUM`` against the sqlite, and rebuild the database
file, this usually takes long time and frees a lot of disk space after
`get()`

fixes #176
@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #182 (7505872) into master (464a820) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   93.81%   93.91%   +0.09%     
==========================================
  Files          17       17              
  Lines        2133     2135       +2     
  Branches      225      225              
==========================================
+ Hits         2001     2005       +4     
+ Misses         84       83       -1     
+ Partials       48       47       -1     
Flag Coverage Δ
python 93.91% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
persistqueue/sqlackqueue.py 85.59% <ø> (-0.19%) ⬇️
persistqueue/__init__.py 73.33% <100.00%> (ø)
persistqueue/sqlbase.py 90.83% <100.00%> (+0.11%) ⬆️
persistqueue/tests/test_sqlackqueue.py 100.00% <100.00%> (ø)
persistqueue/tests/test_sqlqueue.py 100.00% <100.00%> (ø)
persistqueue/queue.py 83.41% <0.00%> (+0.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 464a820...7505872. Read the comment docs.

@peter-wangxu peter-wangxu merged commit 2baeca6 into master Apr 23, 2022
@peter-wangxu peter-wangxu deleted the fix_dbsize branch April 23, 2022 06:10
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

Successfully merging this pull request may close these issues.

File is not getting cleared after get() function
1 participant