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

读操作从主库读取,usemaster注解没有起作用 #56

Closed
venturesome opened this issue Jan 11, 2021 · 0 comments
Closed

读操作从主库读取,usemaster注解没有起作用 #56

venturesome opened this issue Jan 11, 2021 · 0 comments

Comments

@venturesome
Copy link

venturesome commented Jan 11, 2021

jfaster的版本:jfaster.16.1
代码如下:
@Sql("select * from order")
@Usemaster
List getOrders(@ShardingBy("peopleId") OrderSearchForm orderSearchForm);

发现使用usemaster注解后,发现第一次查询,没有更新的字段,猜测还是从库查询,但等待两秒查询后,查询的数据有更新的新内容,从库同步主库数据。

请问下:usemaster的用法是否正确,1.6.1版本是否能正常使用usermaster?
谢谢!

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