Created
September 10, 2013 13:27
-
-
Save tbarbugli/6509377 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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