RaigorJiang commented on issue #12158:
URL: 
https://github.com/apache/shardingsphere/issues/12158#issuecomment-910453929


   This is a very good idea.
   According to the document description:
   > If there is write operation in the same thread and database connection, 
all the following read operations are from the primary database to ensure data 
consistency;
   
   #### But considering the scenarios where threads and connections are reused, 
this feature is likely to cause confusion for users.
   
   I agree with the idea of adding a configuration, for example:
   `props.readwrite-splitting.strong-consistency = true`
   
   like:
   
   `props.sql-show = true`
   
   When `readwrite-splitting.strong-consistency` is `true`, it works like 
currently described.
   When `readwrite-splitting.strong-consistency` is `false`, no matter whether 
there is a write operation or not, the select statement is routed to the read 
nodes.
   
   As for the default value of the configuration is true or false, it needs to 
be discussed. I prefer the default value to false.
   
   @tristaZero @terrymanu   Please hava a see.


-- 
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]


Reply via email to