Merge pull request #1767 from MediaBrowser/dev

add index on TopParentId
This commit is contained in:
Luke 2016-05-23 14:27:04 -04:00
commit 6ac2678d52

View File

@ -246,7 +246,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
string[] postQueries = string[] postQueries =
{ {
"create index if not exists idx_PresentationUniqueKey on TypedBaseItems(PresentationUniqueKey)", "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); _connection.RunQueries(postQueries, Logger);