aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-05-26 15:24:04 -0400
committerLuke <luke.pulverenti@gmail.com>2016-05-26 15:24:04 -0400
commita9eb44628821d2e299677d40b0af7d58af1df362 (patch)
tree01f790847f5a23f9792e0431b5012737184a9154 /MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
parentf99e47dacd19c029edb324cb2f7b54c5b213766a (diff)
parentdd9cb28ee9e1fe95564618bdbc1b3eaaee1f7d96 (diff)
Merge pull request #1781 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
index ec10fdaf6..b1f43d20f 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
@@ -247,7 +247,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
{
"create index if not exists idx_PresentationUniqueKey on TypedBaseItems(PresentationUniqueKey)",
"create index if not exists idx_Type on TypedBaseItems(Type)",
- "create index if not exists idx_TopParentId on TypedBaseItems(TopParentId)"
+ "create index if not exists idx_TopParentId on TypedBaseItems(TopParentId)",
+ //"create index if not exists idx_TypeTopParentId on TypedBaseItems(Type,TopParentId)"
};
_connection.RunQueries(postQueries, Logger);
@@ -1673,7 +1674,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
var slowThreshold = 1000;
#if DEBUG
- slowThreshold = 200;
+ slowThreshold = 100;
#endif
if (elapsed >= slowThreshold)