mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
Use Write-Ahead Logging
This commit is contained in:
parent
3b29c97bc6
commit
5f66d0d5e1
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ namespace MapControl.Caching
|
|||
connection = new SQLiteConnection("Data Source=" + Path.GetFullPath(path));
|
||||
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))
|
||||
{
|
||||
command.ExecuteNonQuery();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue