You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We sync around ~15k documents every day into our meilisearch index. Adding them to the index one-by-one takes a long time. (How it is currently handled with create-Lifecycle hook.
Here are the changes I would suggest:
Since Strapi v4.9.0, the createMany()-Lifecycle hook properly returns a count and a set of ids after creation:
We sync around ~15k documents every day into our meilisearch index. Adding them to the index one-by-one takes a long time. (How it is currently handled with
create
-Lifecycle hook.Here are the changes I would suggest:
Since
Strapi v4.9.0
, thecreateMany()
-Lifecycle hook properly returns a count and a set of ids after creation:e.g.
This should be properly handled in this part of the code:
https://github.com/meilisearch/strapi-plugin-meilisearch/blob/f47f50a86ee189ec36d1fc8b2a7a1140a847abba/server/services/lifecycle/lifecycle.js#L45C1-L49C11
Either check for Strapi Version or update
package.json
with"peerDependency": { "Strapi": "^4.9.0"}
Let me know if I can implement this.
The text was updated successfully, but these errors were encountered: