mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Use Write-Ahead Logging
This commit is contained in:
parent
3b29c97bc6
commit
5f66d0d5e1
|
|
@ -41,6 +41,11 @@ namespace MapControl.Caching
|
||||||
connection = new SQLiteConnection("Data Source=" + Path.GetFullPath(path));
|
connection = new SQLiteConnection("Data Source=" + Path.GetFullPath(path));
|
||||||
connection.Open();
|
connection.Open();
|
||||||
|
|
||||||
|
using (var command = new SQLiteCommand("PRAGMA journal_mode=WAL", connection))
|
||||||
|
{
|
||||||
|
command.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
|
||||||
using (var command = new SQLiteCommand("create table if not exists items (key text primary key, expiration integer, buffer blob)", connection))
|
using (var command = new SQLiteCommand("create table if not exists items (key text primary key, expiration integer, buffer blob)", connection))
|
||||||
{
|
{
|
||||||
command.ExecuteNonQuery();
|
command.ExecuteNonQuery();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue