Commit b3062d79 authored by Eike Ziller's avatar Eike Ziller

Settings: Performance optimizations

The syncing methods of sqlite are tremendously slow on
Linux and Windows at least.

Change-Id: I191e402db9aecdc153f5904e9bc9128c08fb9de4
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent dc62e340
......@@ -131,6 +131,9 @@ SettingsDatabase::SettingsDatabase(const QString &path,
d->m_settings.insert(query.value(0).toString(), QVariant());
}
}
// syncing can be slow, especially on Linux and Windows
d->m_db.exec(QLatin1String("PRAGMA synchronous = OFF;"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment