Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Created September 10, 2013 13:27
Show Gist options
  • Save tbarbugli/6509377 to your computer and use it in GitHub Desktop.
Save tbarbugli/6509377 to your computer and use it in GitHub Desktop.
results = []
with ParallelQuery() as p:
for feed_chunk in chunks(feed_ids, 500):
results.append(model_manager.filter(feed_id__in=feed_chunk).order_by('-activity_id')[:3600])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment