diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-05-23 14:27:04 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-05-23 14:27:04 -0400 |
| commit | 6ac2678d52e1ebafbf5941d7f045a94c45ec74bc (patch) | |
| tree | ece7bb4abfbfa3efaaaf34da92e29aa21d9b27b8 | |
| parent | a9a52eb0fb3b85499454bb58cca78f28578bc14d (diff) | |
| parent | 446b50e5567311f96ce9ef91425fe82fed27bbc7 (diff) | |
Merge pull request #1767 from MediaBrowser/dev
add index on TopParentId
| -rw-r--r-- | MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs index 7e2cc2da3..9978e9781 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); |
