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

Do not reindex type automatically. #1643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vgsantoniazzi
Copy link

@vgsantoniazzi vgsantoniazzi commented Aug 1, 2023

When doing a partial reindex (to index a new field, for example), searchkick was reindexing type even when not asked to.

This is a problem because maybe you want to reindex type with a different value, and after doing a partial index, you need to call the reindex again by type — mainly because searchkick has overridden the type using the document_type method.

Performance is also a concern here.

When doing a partial reindex (to index a new field, for example), searchkick was
reindexing `type`  even when not asked to.

This is a problem because maybe you want to reindex `type` with a different value, and after
doing a partial index, you need to call the `reindex` again by type — mainly because searchkick
has overridden the type using the `document_type` method.

Performance is a concern here. Imagine doing that for millions of rows;
it will take more time to finish the reindexing.
@vgsantoniazzi
Copy link
Author

@ankane can we get a review here?

@vgsantoniazzi
Copy link
Author

@ankane :D

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.

None yet

1 participant