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

读写通过group直接调用 感觉都是在master上执行的呀 #72

Open
yangpei425 opened this issue Jun 15, 2020 · 2 comments
Open

Comments

@yangpei425
Copy link

读写通过group直接调用 感觉都是在master上执行的呀

@yangpei425
Copy link
Author

es.Find(&users) 从master上读,
eg.Slave().Find(&users) 才会从 slave上读,
那么eg.Slave()也可以执行写操作,导致主从数据库数据不同步。

@znzAbl
Copy link

znzAbl commented Feb 18, 2023

我也发现了这个问题 其实并未真正实现读写分离

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