zjcnb opened a new issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868
Hi community,
refer to: #14858
```
@Override
@Transactional
public void processSuccess() throws SQLException {
System.out.println("-------------- Process Success Begin
---------------");
List<Long> orderIds = insertData();
printData();
deleteData(orderIds);
printData();
System.out.println("-------------- Process Success Finish
--------------");
}
```
Insert and query should split when use readwrite-splitting feature. Because
insert and query in a transaction, lead to read always request write data
source.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]