comparison OrthancServer/DatabaseWrapper.cpp @ 1717:3926e6317a43 db-changes

SetIdentifierTagInternal
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Oct 2015 17:45:34 +0200
parents a7745f3a2cc4
children a7c05bbfaf6a
comparison
equal deleted inserted replaced
1716:2ca7888f8600 1717:3926e6317a43
266 db_.OpenInMemory(); 266 db_.OpenInMemory();
267 } 267 }
268 268
269 void DatabaseWrapper::Open() 269 void DatabaseWrapper::Open()
270 { 270 {
271 db_.Execute("PRAGMA ENCODING=\"UTF-8\";");
272
271 // Performance tuning of SQLite with PRAGMAs 273 // Performance tuning of SQLite with PRAGMAs
272 // http://www.sqlite.org/pragma.html 274 // http://www.sqlite.org/pragma.html
273 db_.Execute("PRAGMA SYNCHRONOUS=NORMAL;"); 275 db_.Execute("PRAGMA SYNCHRONOUS=NORMAL;");
274 db_.Execute("PRAGMA JOURNAL_MODE=WAL;"); 276 db_.Execute("PRAGMA JOURNAL_MODE=WAL;");
275 db_.Execute("PRAGMA LOCKING_MODE=EXCLUSIVE;"); 277 db_.Execute("PRAGMA LOCKING_MODE=EXCLUSIVE;");