distinct is not needed since there are no feed duplicates and slows the query a lot

This commit is contained in:
Athou
2021-01-30 22:07:12 +01:00
parent 000a99c53e
commit d7858f17a1

View File

@@ -39,7 +39,7 @@ public class FeedDAO extends GenericDAO<Feed> {
query.join(feed.subscriptions, subs).join(subs.user, user).where(user.lastLogin.gt(lastLoginThreshold));
}
return query.orderBy(feed.disabledUntil.asc()).limit(count).distinct().fetch();
return query.orderBy(feed.disabledUntil.asc()).limit(count).fetch();
}
public Feed findByUrl(String normalizedUrl) {