mirror of
https://github.com/simon987/reddit_feed.git
synced 2025-04-24 12:15:51 +00:00
Lower buffer size
This commit is contained in:
parent
3a3fe1f546
commit
fcb2ce8b68
2
run.py
2
run.py
@ -105,7 +105,7 @@ def serialize(thing):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@buffered(batch_size=10000, flush_on_exit=True)
|
@buffered(batch_size=5000, flush_on_exit=True)
|
||||||
def _publish_buffered(items):
|
def _publish_buffered(items):
|
||||||
buckets = defaultdict(list)
|
buckets = defaultdict(list)
|
||||||
for item in items:
|
for item in items:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user