Skip to content

Commit

Permalink
optimize the query
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 committed Aug 8, 2024
1 parent 205a703 commit 9ebc744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sage300/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ def update_and_disable_cost_code(workspace_id: int, cost_codes_to_disable: Dict,

if bulk_update_payload:
logger.info(f"Updating Cost Categories | WORKSPACE_ID: {workspace_id} | COUNT: {len(bulk_update_payload)}")
CostCategory.objects.bulk_update(bulk_update_payload, ['job_name', 'job_code', 'updated_at', 'is_imported'], batch_size=50)
CostCategory.objects.bulk_update(bulk_update_payload, ['job_name', 'job_code', 'updated_at'], batch_size=50)

0 comments on commit 9ebc744

Please sign in to comment.