Skip to content

[SOLVED] What is the "Shrink database file"? #423

Answered by martinrotter
sakkamade asked this question in Q&A
Discussion options

You must be logged in to vote

RSS Guard uses SQLite as database. SQLite stores all data in a single file and, over time, the file naturally increases as more and more messages are stored in it.

However, if you purge some messages from database via "Database cleanup" dialog, SQLite will not automatically resize the file and will keep its previous (big) size, because of performance reasons.

So if your DB had 100 MB before cleanup and 99% of messages were removed, then your DB will still have 100 MB after the operation.

Option "shrink" will force SQLite to remove all "empty" parts of file physically from filesystem and make the file only large enough as really needed.

https://sqlite.org/lang_vacuum.html

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sakkamade
Comment options

@martinrotter
Comment options

Answer selected by sakkamade
Comment options

You must be logged in to vote
2 replies
@sakkamade
Comment options

@sakkamade
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants