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

Add a debounce/throttle on document addition #399

Open
bidoubiwa opened this issue Apr 28, 2022 · 0 comments
Open

Add a debounce/throttle on document addition #399

bidoubiwa opened this issue Apr 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bidoubiwa
Copy link
Contributor

Description
Strapi has not a lot of ways to add documents in batches. Most ways to achieve entry addition is one by one. While it is not a problem with a small number of document addition, if a user add's thousands of document at the time the web-server starts to reject new webserver calls, or abort new additions to its own database.

Error: aborted
262: aborted
Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

Another issue is that Meilisearch does not like at all to have small batches. Meilisearch is more performant with one addition of 100Mo of document than it is with 10000 additions of 1 document.

To avoid this, we should create a debounce system or a throttle system that avoid an overload of calls to meilisearch.

@bidoubiwa bidoubiwa added the enhancement New feature or request label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants