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:
parent
634b899656
commit
09ec969045
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user