aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 15:03:04 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 15:03:04 -0400
commitc0664988f587a0d667cfdcaa98673bce2db2a93d (patch)
tree1f920ed44f7fdb6449a3b62421c0c6b6085cc13d
parent18b8f4d8d461adb84914c725d29ca0ed23bd54dc (diff)
add index
-rw-r--r--MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
index 994d2f3e3..19932c96c 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
@@ -245,7 +245,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
string[] postQueries =
{
"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_Type on TypedBaseItems(Type)",
+ "create index if not exists idx_TopParentId on TypedBaseItems(TopParentId)"
};
_connection.RunQueries(postQueries, Logger);