Increase size of chunks going into db to reduce commit frequency.
This commit is contained in:
parent
5adc0943aa
commit
eba495e3b7
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ def get_comments(
|
|||
|
||||
if do_supplement:
|
||||
comments = pushshift.supplement_reddit_data(comments, chunk_size=100)
|
||||
comments = common.generator_chunker(comments, 200)
|
||||
|
||||
comments = common.generator_chunker(comments, 500)
|
||||
for chunk in comments:
|
||||
step = database.insert(chunk)
|
||||
message = form.format(
|
||||
|
|
Loading…
Reference in a new issue