Fixed: Performance issues when processing results from indexers (RSS/Search)

This commit is contained in:
Mark McDowall
2014-02-22 00:53:29 -08:00
parent 0a837be9ff
commit 78dacf6850
12 changed files with 47 additions and 44 deletions

View File

@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Security.Cryptography.X509Certificates;
using Marr.Data;
using Marr.Data.QGen;
using NzbDrone.Core.Datastore.Events;
@@ -74,7 +73,7 @@ namespace NzbDrone.Core.Datastore
public TModel Get(int id)
{
var model = DataMapper.Query<TModel>().SingleOrDefault(c => c.Id == id);
var model = Query.Where(c => c.Id == id).SingleOrDefault();
if (model == null)
{