natehuangting opened a new issue, #19693:
URL: https://github.com/apache/shardingsphere/issues/19693

   ## Feature Request
   
   ### Describe the feature you would like.
   
   I recently found that I need to configure a lot when configuring read-write 
separation.
   For example, the following configuration, there are only two, if there are 
100, then the configuration file is very large
   
   ``` yaml
   readwrite_ds_0:
     staticStrategy:
       writeDataSourceName: ds_write_0
       readDataSourceNames:
         - ds_read_0
     loadBalancerName: randomreadwrite_ds_1:
     staticStrategy:
       writeDataSourceName: ds_write_1
       readDataSourceNames:
         - ds_read_1
     loadBalancerName: random
   ```
   
   So I want to optimize this configuration by cartesian product. The optimized 
configuration is as follows.
   ``` yaml
   readwrite_ds_${0..9}:
     staticStrategy:
       writeDataSourceName: ds_write_${0..9}
       readDataSourceNames:
         - ds_read_${0..9}
     loadBalancerName: random
   ```
   


-- 
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-unsubscr...@shardingsphere.apache.org.apache.org

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

Reply via email to