1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Added additional index to episodes table to speed up certain queries.

This commit is contained in:
Taloth Saldono 2016-03-31 00:37:53 +02:00
parent 4fc150f77b
commit ff6737314f
2 changed files with 17 additions and 0 deletions

View File

@ -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();
}
}
}

View File

@ -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" />