Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Configuring catalog promotions batch sizes explained #13595

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/cookbook/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Promotions
promotions/custom-catalog-promotion-scope
promotions/custom-catalog-promotion-action
promotions/catalog-promotion-labels
promotions/catalog-promotion-performance

.. include:: /cookbook/promotions/map.rst.inc

Expand Down
19 changes: 19 additions & 0 deletions docs/cookbook/promotions/catalog-promotion-performance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Catalog promotion performance
=============================

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.
1 change: 1 addition & 0 deletions docs/cookbook/promotions/map.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
* :doc:`/cookbook/promotions/custom-catalog-promotion-scope`
* :doc:`/cookbook/promotions/custom-catalog-promotion-action`
* :doc:`/cookbook/promotions/catalog-promotion-labels`
* :doc:`/cookbook/promotions/catalog-promotion-performance`