bugfix: turn off synchronous fsync when using PkExtra as the data isn't valuable, and we can reduce the time of the desktop scanning by 80%

This commit is contained in:
Richard Hughes 2008-09-22 21:14:31 +01:00
parent 634b899656
commit 09ec969045

View File

@ -664,6 +664,9 @@ pk_extra_set_database (PkExtra *extra, const gchar *filename)
}
}
/* we don't need to keep syncing */
sqlite3_exec (extra->priv->db, "PRAGMA synchronous=OFF", NULL, NULL, NULL);
/* try to populate a working cache */
if (extra->priv->access == PK_EXTRA_ACCESS_READ_ONLY ||
extra->priv->access == PK_EXTRA_ACCESS_READ_WRITE)