Skip to content

Commit

Permalink
Merge pull request #254 from HSF/dev
Browse files Browse the repository at this point in the history
use bulk_mapping_update by default
  • Loading branch information
wguanicedew authored Nov 29, 2023
2 parents 18acab8 + e8d1c3a commit 24f39f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main/lib/idds/core/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def update_input_collection_with_contents(coll, parameters, contents, bulk_size=


@transactional_session
def update_contents(parameters, request_id=None, transform_id=None, use_bulk_update_mappings=False, session=None):
def update_contents(parameters, request_id=None, transform_id=None, use_bulk_update_mappings=True, session=None):
"""
updatecontents.
Expand Down Expand Up @@ -764,7 +764,7 @@ def add_contents_ext(contents, bulk_size=10000, session=None):


@transactional_session
def update_contents_ext(parameters, request_id=None, transform_id=None, use_bulk_update_mappings=False, session=None):
def update_contents_ext(parameters, request_id=None, transform_id=None, use_bulk_update_mappings=True, session=None):
"""
update contents ext.
Expand Down
2 changes: 1 addition & 1 deletion main/lib/idds/core/processings.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def update_processing_contents(update_processing, update_contents=None, update_m
update_dep_contents=None, update_collections=None, messages=None,
new_update_contents=None, new_input_dependency_contents=None,
new_contents_ext=None, update_contents_ext=None,
request_id=None, transform_id=None, use_bulk_update_mappings=False,
request_id=None, transform_id=None, use_bulk_update_mappings=True,
message_bulk_size=2000, session=None):
"""
Update processing with contents.
Expand Down
2 changes: 1 addition & 1 deletion main/lib/idds/orm/contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def update_content(content_id, parameters, session=None):


@transactional_session
def update_contents(parameters, use_bulk_update_mappings=False, request_id=None, transform_id=None, session=None):
def update_contents(parameters, use_bulk_update_mappings=True, request_id=None, transform_id=None, session=None):
"""
update contents.
Expand Down

0 comments on commit 24f39f1

Please sign in to comment.