delete feed by feed as entries are now deleted in the same transaction as the feed

This commit is contained in:
Athou
2014-08-15 15:30:24 +02:00
parent 8a57be3e63
commit 23d33b8402

View File

@@ -42,7 +42,7 @@ public class DatabaseCleaningService {
deleted = new UnitOfWork<Integer>(sessionFactory) {
@Override
protected Integer runInSession() throws Exception {
List<Feed> feeds = feedDAO.findWithoutSubscriptions(BATCH_SIZE);
List<Feed> feeds = feedDAO.findWithoutSubscriptions(1);
return feedDAO.delete(feeds);
};
}.run();