mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
delete feed by feed as entries are now deleted in the same transaction as the feed
This commit is contained in:
@@ -42,7 +42,7 @@ public class DatabaseCleaningService {
|
|||||||
deleted = new UnitOfWork<Integer>(sessionFactory) {
|
deleted = new UnitOfWork<Integer>(sessionFactory) {
|
||||||
@Override
|
@Override
|
||||||
protected Integer runInSession() throws Exception {
|
protected Integer runInSession() throws Exception {
|
||||||
List<Feed> feeds = feedDAO.findWithoutSubscriptions(BATCH_SIZE);
|
List<Feed> feeds = feedDAO.findWithoutSubscriptions(1);
|
||||||
return feedDAO.delete(feeds);
|
return feedDAO.delete(feeds);
|
||||||
};
|
};
|
||||||
}.run();
|
}.run();
|
||||||
|
|||||||
Reference in New Issue
Block a user