Skip to content

Commit

Permalink
fine-tune _bulk buffer flush for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunnjpl authored Jul 27, 2023
1 parent 31d81e2 commit b120130
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 b120130

Please sign in to comment.