Skip to content

Commit

Permalink
[Docs] Configuring catalog promotions batch sizes explained
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek committed Feb 3, 2022
1 parent b46a697 commit 07c4e01
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/cookbook/promotions/catalog-promotion-batch-sizes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
How to customize catalog promotion batches size?
================================================

In case of looking for improving performance of processing your `catalog promotions`

Change default batch size:
----------------------------

By default `batch_size` in Sylius is fixed at processing `100` variants per batch.
In order if you want to increase or decrease it's value, you have to overwrite it.
You can achieve that by adding to your `_sylius.yaml` configuration file this config with changed `batch_size` value:

.. code-block:: yaml
sylius_core:
catalog_promotions:
batch_size: 100
Then your batch size should be fixed to passed value.

0 comments on commit 07c4e01

Please sign in to comment.