places::storage

Function run_maintenance_vacuum

source
pub fn run_maintenance_vacuum(conn: &PlacesDb) -> Result<()>
Expand description

Run maintenance on the places DB (vacuum step)

The run_maintenance_*() functions are intended to be run during idle time and will take steps to clean up / shrink the database. They’re split up so that we can time each one in the Kotlin wrapper code (This is needed because we only have access to the Glean API in Kotlin and it supports a stop-watch style API, not recording specific values).