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 2021/09/01 16:33:13 UTC

[GitHub] [shardingsphere] RaigorJiang commented on issue #12158: Can READ/write separation feature add a configuration to allow inconsistent read?

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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org