[SOLVED] What is the "Shrink database file"? #423
-
I could not come across the precise definition in docs, but I fancy to understand what exactly is In particular, what are chances of important data to be removed? P.s. This question is not much out of my curiosity as this option selects itself after click on "OK" in "Cleanup database" when |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
Also, I will check the dialog behavior. "shrink" should be optional of course. |
Beta Was this translation helpful? Give feedback.
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