Added misnamed provider, PLINQ speeds it up, but still to slow for use, paging helps, but isn't consistent.

A bunch of files changed removing System.Linq, thanks Resharper :(
This commit is contained in:
Mark McDowall 2011-09-03 20:05:44 -07:00
commit 0b586de226
54 changed files with 572 additions and 43 deletions

View file

@ -175,6 +175,15 @@ namespace NzbDrone.Core.Providers
return AttachSeries(_database.Fetch<Episode>("WHERE EpisodeFileId = @0", episodeFileId));
}
public virtual IList<Episode> EpisodesWithFiles()
{
var episodes = _database.Fetch<Episode, EpisodeFile>(@"SELECT Episodes.*, Series.Title as SeriesTitle, EpisodeFiles.* FROM Episodes
INNER JOIN Series ON Episodes.SeriesId = Series.SeriesId
INNER JOIN EpisodeFiles ON Episodes.EpisodeFileId = EpisodeFiles.EpisodeFileId");
return episodes;
}
public virtual void RefreshEpisodeInfo(Series series)
{
Logger.Info("Starting episode info refresh for series: {0}", series.Title.WithDefault(series.SeriesId));