Further pushing down feed fetches to handle load until db is scaled out.

This commit is contained in:
Samuel Clay 2013-03-20 08:13:07 -07:00
parent ff1f79eddf
commit ca43ea8555

View file

@ -20,7 +20,7 @@ class TaskFeeds(Task):
next_scheduled_update__lte=now,
active=True,
active_premium_subscribers__gte=1
).order_by('?')[:500]
).order_by('?')[:400]
popular_count = popular_feeds.count()
# Regular feeds
@ -28,7 +28,7 @@ class TaskFeeds(Task):
next_scheduled_update__lte=now,
active=True,
active_subscribers__gte=1
).order_by('?')[:250]
).order_by('?')[:200]
active_count = feeds.count()
# Mistakenly inactive feeds