You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/07/03 06:28:06 UTC
[GitHub] [incubator-shardingsphere] terrymanu commented on issue #2649: When
using @Transactional ,
How can I choose the datasource (master or slave) in the transaction??
terrymanu commented on issue #2649: When using @Transactional , How can I choose the datasource (master or slave) in the transaction??
URL: https://github.com/apache/incubator-shardingsphere/issues/2649#issuecomment-507958259
ShardingSphere design as: If there is write operation in the same thread and database connection, all the following read operations are from the master database to ensure data consistency.
So if you using ShardingSphere, you can not query from slave after updated.
FYI: https://shardingsphere.apache.org/document/current/en/features/read-write-split/core-features/
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services