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/15 08:25:06 UTC

[GitHub] [incubator-shardingsphere] sunbufu commented on issue #2663: how to set datasource readonly

sunbufu commented on issue #2663: how to set datasource readonly
URL: https://github.com/apache/incubator-shardingsphere/issues/2663#issuecomment-511313809
 
 
   Hello, I have been thinking for a long time about the readonly parameter, and I cloud't found any scenario. 
   1. If we use readonly for sharding, we will get many problems, such as which datasource should we use for DML or DQL, but It won't bring us any benefits.
   2. If we use readonly for master-slave, I think readonly is redundant, because master must be writeable and slave must be readable.
   3. If we use readonly for encrypt, I think it's redundant too.
   So, I think maybe we don't need readonly parameter in sharding-sphere. 

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