update connection pooling

This commit is contained in:
Luke Pulverenti
2016-06-11 16:12:01 -04:00
parent 96b1ddfddf
commit da6e94396f
17 changed files with 1587 additions and 1472 deletions

View File

@@ -32,12 +32,7 @@ namespace MediaBrowser.Server.Implementations.Security
string[] queries = {
"create table if not exists AccessTokens (Id GUID PRIMARY KEY, AccessToken TEXT NOT NULL, DeviceId TEXT, AppName TEXT, AppVersion TEXT, DeviceName TEXT, UserId TEXT, IsActive BIT, DateCreated DATETIME NOT NULL, DateRevoked DATETIME)",
"create index if not exists idx_AccessTokens on AccessTokens(Id)",
//pragmas
"pragma temp_store = memory",
"pragma shrink_memory"
"create index if not exists idx_AccessTokens on AccessTokens(Id)"
};
connection.RunQueries(queries, Logger);