shardingsphere 读写分离的疑问

3. 同一线程且同一数据库连接内,如有写入操作,以后的读操作均从主库读取,用于保证数据一致性。(文档地址:https://shardingsphere.apache.org/document/legacy/3.x/document/cn/features/read-write-split/core-features/

同一数据库连接 = 同一数据库逻辑连接(由于一般使用数据库连接池技术) =  同一个commit  = 同一个事物

猜你喜欢

转载自www.cnblogs.com/daixianjun/p/shardingsphere-read-write-split.html