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

putRow增加索引创建成功后再执行回调的参数 #37

Open
xiongsongsong opened this issue Jan 15, 2020 · 0 comments
Open

putRow增加索引创建成功后再执行回调的参数 #37

xiongsongsong opened this issue Jan 15, 2020 · 0 comments

Comments

@xiongsongsong
Copy link

场景

putRow后,立即批量查询数据,发现刚新增的数据未返回,延迟一小会儿后再查询才有数据。
例如,增加一个文章后立即返回文章列表,发现未出现新增的文章,需要定时再发起一次查询请求。应该是创建索引占用了时间。

可否考虑,在putRow中增加一个参数,例如 indexCreated: true ,当putRow的行索引创建完毕后,再执行回调,这样我可以在回调中直接再查询一次列表,返回最新的数据。

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

1 participant