We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
读写通过group直接调用 感觉都是在master上执行的呀
The text was updated successfully, but these errors were encountered:
es.Find(&users) 从master上读, eg.Slave().Find(&users) 才会从 slave上读, 那么eg.Slave()也可以执行写操作,导致主从数据库数据不同步。
Sorry, something went wrong.
我也发现了这个问题 其实并未真正实现读写分离
No branches or pull requests
读写通过group直接调用 感觉都是在master上执行的呀
The text was updated successfully, but these errors were encountered: