skipping initial entries marking as the query takes too long to complete and locks the database

This commit is contained in:
Athou
2013-04-21 18:57:31 +02:00
parent 1f15cabfa5
commit 1e94cc434c

View File

@@ -48,6 +48,9 @@ public class FeedSubscriptionService {
sub.setTitle(title.substring(0, Math.min(128, title.length())));
feedSubscriptionDAO.saveOrUpdate(sub);
// TODO optimize this request, it takes ages to complete, skipping for
// now
newSubscription = false;
if (newSubscription) {
List<FeedEntryStatus> statuses = Lists.newArrayList();
List<FeedEntry> allEntries = feedEntryDAO.findByFeed(feed, 0, 10);