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 05:55:07 UTC
[GitHub] [incubator-shardingsphere] yufan022 opened a new issue #2649: When
using @Transactional , how can i change master or slave?
yufan022 opened a new issue #2649: When using @Transactional , how can i change master or slave?
URL: https://github.com/apache/incubator-shardingsphere/issues/2649
---
sharding-jdbc-spring-boot-starter 3.1.0
---
Hi:
I hava a question. When i use spring annotation '@Transactional' .
How can I choose the datasource (master or slave) in the transaction?
in transaction example:
select -- slave
insert -- master
select -- master
select -- master
but i want the result like this :
select -- slave
insert -- master
select -- master
Sometimes , I want change the datasource to slave .
select -- slave <------ so how can i do this?
----------------------------------------------------------------
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