small batch size seems better than a large one

This commit is contained in:
Athou
2013-07-30 06:18:22 +02:00
parent 8d340e0f52
commit 9bc5fdf02f

View File

@@ -139,7 +139,7 @@ public class FeedRefreshTaskGiver {
* refills the refresh queue and empties the giveBack queue while at it
*/
private void refill() {
int count = Math.min(1000, 3 * backgroundThreads);
int count = Math.min(50, 3 * backgroundThreads);
// first, get feeds that are up to refresh from the database
List<Feed> feeds = null;