浏览代码

Merge pull request #1767 from MediaBrowser/dev

add index on TopParentId
Luke 9 年之前
父节点
当前提交
6ac2678d52
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs

+ 2 - 1
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);