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

Conversation

TheMilek
Copy link
Member

@TheMilek TheMilek commented Feb 3, 2022

Q A
Branch? 1.11
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets #13587
License MIT

@TheMilek TheMilek requested a review from a team as a code owner February 3, 2022 15:32
@probot-autolabeler probot-autolabeler bot added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Feb 3, 2022
@TheMilek TheMilek force-pushed the configuring-batch-size-docs branch from aaad61a to 07c4e01 Compare February 3, 2022 15:33
docs/cookbook/promotions/catalog-promotion-batch-sizes.rst Outdated Show resolved Hide resolved
Comment on lines 2 to 19
================================================

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole part may be separate section.

For the future other sections may be:

  • changing the query if you are checking different relation then predefined by us(Products & Taxons)
  • Running multiple workers
  • Going bare metal with update and drop queries (/cc @SirDomin)

@TheMilek TheMilek force-pushed the configuring-batch-size-docs branch 3 times, most recently from d8f52c8 to 0374128 Compare February 3, 2022 16:06
@TheMilek TheMilek force-pushed the configuring-batch-size-docs branch from 0374128 to 6184d41 Compare February 3, 2022 16:15
@GSadee GSadee merged commit 79eb854 into Sylius:1.11 Feb 3, 2022
@GSadee
Copy link
Member

GSadee commented Feb 3, 2022

Thank you, Kamil! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation related issues and PRs - requests, fixes, proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants