Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change batch size to leave margin for payload (#12113) (#12118)
Krzysztof Kwaśniakb151d014af75
diff --git a/saleor/order/migrations/0139_fix_undiscounted_total_on_lines.py b/saleor/order/migrations/0139_fix_undiscounted_total_on_lines.pyindex 460e6d71ec..5097f76fb5 100644--- a/saleor/order/migrations/0139_fix_undiscounted_total_on_lines.py+++ b/saleor/order/migrations/0139_fix_undiscounted_total_on_lines.py@@ -6,8 +6,9 @@ from django.db.models.signals import post_migratefrom saleor.order.tasks import send_order_updated-# 5000 results in 246701 bytes (base64(json(list of ids))) which is the limit for SQS-SEND_ORDER_UPDATED_BATCH_SIZE = 5000+# 3500 results in 187344 bytes (base64(json(list of ids)))+# leave safe margin for rest of the payload+SEND_ORDER_UPDATED_BATCH_SIZE = 3500RAW_SQL = """