Skip to content

Commit

Permalink
Merge pull request #49 from NASA-PDS/fine-tune-bulk-buffer-flush-thre…
Browse files Browse the repository at this point in the history
…shold

fine-tune _bulk buffer flush for performance
  • Loading branch information
alexdunnjpl authored Jul 27, 2023
2 parents 31d81e2 + b120130 commit 629dbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pds/registrysweepers/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def write_updated_docs(host: Host, ids_and_updates: Mapping[str, Dict], index_na
"""
log.info(f"Updating documents for {len(ids_and_updates)} products...")

bulk_buffer_max_size_mb = 20.0
bulk_buffer_max_size_mb = 30.0
bulk_buffer_size_mb = 0.0
bulk_updates_buffer: List[str] = []
for lidvid, update_content in ids_and_updates.items():
Expand Down

0 comments on commit 629dbc1

Please sign in to comment.