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

Set default per page size to 200 when bulk indexing #313

Open
2 tasks
roborourke opened this issue Nov 8, 2021 · 1 comment
Open
2 tasks

Set default per page size to 200 when bulk indexing #313

roborourke opened this issue Nov 8, 2021 · 1 comment

Comments

@roborourke
Copy link
Contributor

roborourke commented Nov 8, 2021

ElasticPress now supports setting the default bulk indexing page size via filter. Lets drop it to 200 to make indexing more reliable.

This also needs to account for the number of shards per node, and should be a number divisible by the number of shards so that ES can more effectively parallelise document ingestion.

Filter is ep_index_default_per_page

Acceptance criteria:

  • Default to 200 documents per page in bulk indexing
  • Round to nearest lower number divisible by number of shards for the index, e.g. 5 shards = 200, 3 shards = 180
@roborourke
Copy link
Contributor Author

Related to #307

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

No branches or pull requests

1 participant