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

Support for adjusting batch-size in ProcessUpdateIndexQueueCommand #229

Open
wants to merge 5 commits into
base: 1.x
Choose a base branch
from

Conversation

jremmurd
Copy link
Contributor

@jremmurd jremmurd commented Feb 19, 2025

With this PR it gets possible to adjust the batch size using the existing command option.

Example: bin/console ecommerce:indexservice:process-update-queue --timeout=5 --processes=3 --batch-size=50

From the docs:

The batch size is determined by getBatchSize() and defaults to the segment
size. The segment size is the number of items a worker (child) process
consumes before it dies. This means that, by default, a child process will
process all its items, persist them in a batch and then die. If you want
to improve the performance of your command, try to tweak getSegmentSize()
first. Optionally, you can tweak getBatchSize() to process multiple batches
in each child process.

Copy link

github-actions bot commented Feb 19, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@jremmurd
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@jremmurd jremmurd marked this pull request as ready for review February 19, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant