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

Use index-swapping in relevant plugins instead of deleting index (v0.30.0) #223

Closed
6 tasks
bidoubiwa opened this issue Nov 22, 2022 · 5 comments
Closed
6 tasks
Labels
Meilisearch bump Changes related to the Meilisearch bump version WIP Work in progress issue

Comments

@bidoubiwa
Copy link
Contributor

bidoubiwa commented Nov 22, 2022

As per v0.30.0, index-swapping is introduced. This feature gives the possibility to create a new index, and then swap it's name with another already existing index.

Currently, in some libraries, when we have to index content, we start by deleting the index (if it already existed), then recreate it. This results in a downtime for the user as the index is not accessible while the new one is being created.

This deleting/re-create method is used in in the following libraries:

  • Gatsby
  • Strapi
  • docs-scraper
  • rails
  • Symfony

We should update this method with the swapping method.

The common implementation looks like this:

  • A new index is created with a generated name, for example an uuid4 to ensure the index name is not already used.
  • Settings are added to this new index
  • Documents are added to this new index
  • Swap the new index with the old index.
  • Delete the index with the generated name

TODO

Issue:

  • Create issue in the above-mentioned libraries

Implement this change in:

@bidoubiwa bidoubiwa added WIP Work in progress issue Meilisearch bump Changes related to the Meilisearch bump version labels Nov 22, 2022
@bidoubiwa
Copy link
Contributor Author

Am I forgetting a repo?

@brunoocasali
Copy link
Member

I think Rails can benefit from this feature, and maybe Symfony (but I'm not sure about it).

@curquiza
Copy link
Member

curquiza commented Aug 3, 2023

Can we create issues in corresponding repo and close this one?

@brunoocasali
Copy link
Member

Yep we can!

@brunoocasali
Copy link
Member

I'm closing this, since all the issues were created in the repositories!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Meilisearch bump Changes related to the Meilisearch bump version WIP Work in progress issue
Projects
None yet
Development

No branches or pull requests

3 participants