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

索引能不能不仅索引id,还能获取其它一些简单数据 #57

Open
munggruel opened this issue Aug 7, 2016 · 1 comment
Open

Comments

@munggruel
Copy link

比如:索引查询之后 能够返回文章的标题,作者等信息(不需要查找数据库),水平拆库拆表 极限情况 是 30条数据 要 有 30次socket连接(因为对应30个不同的数据库),这样查询 列表可以 直接从索引查到,而不是 仅仅只能获取id,再从数据库取数据

@huichen
Copy link
Owner

huichen commented Aug 7, 2016

你需要一个 data_node 服务,异步从各个数据库更新字段,不要做同步查询

我们内部已经实现了这样的架构,以后有机会开放出来

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

No branches or pull requests

2 participants