Skip to content

//selekt-android/com.bloomberg.selekt.android/SQLiteDatabase/incrementalVacuum

incrementalVacuum

[androidJvm]\ fun incrementalVacuum()

The incremental vacuum pragma causes pages to be removed from the freelist. The database file is truncated by the same number of pages. The incremental vacuum pragma has no effect if the database is not already in incremental vacuum mode or if there are no pages on the freelist.

[androidJvm]\ fun incrementalVacuum(pages: Int)

The incremental vacuum pragma causes up to N pages to be removed from the freelist. The database file is truncated by the same amount. The incremental vacuum pragma has no effect if the database is not already in incremental mode or if there are no pages on the freelist. If there are fewer on the freelist, or if pages is less than 1, then the entire freelist is cleared.

Parameters

androidJvm

pages to remove from the freelist.