Skip to content

Reindex only the current document after rolling back the document #12320

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

Closed
TCOTC opened this issue Aug 24, 2024 · 6 comments
Closed

Reindex only the current document after rolling back the document #12320

TCOTC opened this issue Aug 24, 2024 · 6 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Aug 24, 2024

支持在回滚文档时打断重建索引 回滚文档后仅重新索引当前文档

每回滚一篇文档都要等半天才能继续回滚下一篇,需要回滚的文档多了就得等很久。

像这个搜索索引就没有必要一直等,直接打断了回滚下一篇文档就好:

image

关联 #12295

@88250
Copy link
Member

88250 commented Aug 28, 2024

这个没有办法打断,并且如果打断的话会导致索引不完整出现其他问题。

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 28, 2024

那能不能跳过部分不会产生问题的索引?比如这个搜索索引非常耗时,每回滚一个文档都要完整等一遍

@88250
Copy link
Member

88250 commented Aug 28, 2024 via email

@88250 88250 self-assigned this Aug 29, 2024
@88250 88250 changed the title 支持在回滚文档时打断重建索引 Reindex only the current document after rolling back the document Aug 29, 2024
@88250 88250 added this to the 3.1.5 milestone Aug 29, 2024
@88250
Copy link
Member

88250 commented Aug 29, 2024

考虑了下,改进为仅重建当前文档索引,不再全量重建索引。

@TCOTC
Copy link
Contributor Author

TCOTC commented Aug 29, 2024

我还以为不全量重建索引会产生什么问题,原来是可以仅重建当前文档索引的 😄

@aptexd
Copy link

aptexd commented Aug 30, 2024

Oh God, the question has finally changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants