Added additional index to episodes table to speed up certain queries.
This commit is contained in:
parent
4fc150f77b
commit
ff6737314f
|
@ -0,0 +1,16 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(95)]
|
||||
public class add_additional_episodes_index : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Create.Index().OnTable("Episodes").OnColumn("SeriesId").Ascending()
|
||||
.OnColumn("SeasonNumber").Ascending()
|
||||
.OnColumn("EpisodeNumber").Ascending();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -253,6 +253,7 @@
|
|||
<Compile Include="Datastore\Migration\069_quality_proper.cs" />
|
||||
<Compile Include="Datastore\Migration\070_delay_profile.cs" />
|
||||
<Compile Include="Datastore\Migration\096_disable_kickass.cs" />
|
||||
<Compile Include="Datastore\Migration\095_add_additional_episodes_index.cs" />
|
||||
<Compile Include="Datastore\Migration\101_add_ultrahd_quality_in_profiles.cs" />
|
||||
<Compile Include="Datastore\Migration\071_unknown_quality_in_profile.cs" />
|
||||
<Compile Include="Datastore\Migration\072_history_grabid.cs" />
|
||||
|
|
Loading…
Reference in New Issue