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

关于查询结果的缓存一致性 #1

Open
hanzug opened this issue Apr 6, 2024 · 2 comments
Open

关于查询结果的缓存一致性 #1

hanzug opened this issue Apr 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hanzug
Copy link
Owner

hanzug commented Apr 6, 2024

目前redis存储了查询结果的倒排索引,只是简单的设置了超时过期,并未考虑缓存一致性。

@hanzug hanzug added the bug Something isn't working label Apr 6, 2024
@hanzug
Copy link
Owner Author

hanzug commented Apr 10, 2024

现在是在考虑引入布隆过滤器,维护缓存中token的bitmap,在更新文档的时候通过布隆过滤器判断是否在缓存中,如果判断在缓存中,删除缓存。(考虑使用延迟双删)

@hanzug
Copy link
Owner Author

hanzug commented Apr 29, 2024

在数据库主从架构下,数据处理过程在独立的物理机,搜索模块使用从库。在这种架构下如何得知从库写入的新数据?需要研究一下mongodb的主从复制了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant