I have changed value of auto_vacuum PRAGMA of my sqlite database to INCREMENTAL. When I run PRAGMA incremental_vacuum;
through 'DB Browser for SQlite' application it frees all the pages in the free_list
.
But when I am running same statement using any SQLite library in C# (e.g. Microsoft.Data.SQLite
), it frees only one page from the free_list
I verified this by getting the number in current free_list
by running PRAGMA freelist_count
before and after running PRAGMA incremental_vacuum
statement.
Also I tried passing different parameters to incremental_vacuum
pragma e.g. PRAGMA incremental_vacuum(100)
but it would still free only one page.
Please let me if what is it that I am doing wrong here.
Thanks in advance!
VACUUM
after changing theauto_vacuum
setting?incremental_vacuum
runs fine throughDB Browser for SQLite
application