From 446b50e5567311f96ce9ef91425fe82fed27bbc7 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 23 May 2016 14:25:52 -0400 Subject: [PATCH] add index on TopParentId --- .../Persistence/SqliteItemRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs index 7e2cc2da3c..9978e9781d 100644 --- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs +++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs @@ -246,7 +246,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);