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 2020/02/24 05:05:04 UTC

[GitHub] [incubator-shardingsphere] fantacy2001 opened a new issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

fantacy2001 opened a new issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431
 
 
   Does sharding JDBC support the following? Only the default fragmentation fields and strategy are configured for the databases and tables. The actual data nodes of tables are not configured. The assign tables are obtained through my customized mapping(myself java code). 
   I have many modules in my project. Each module only configures tables participating in sharding, and all projects share a common customized sharding rule.
   For example:
   //my customized mapping(sharding rule)
   Map<String,String> shardingMap = new HashMap<>();
           shardingMap.put("tenantId1","db_0:table_01");
           shardingMap.put("tenantId2","db_0:table_02");
           shardingMap.put("tenantId3","db_1:table_03");
           shardingMap.put("tenantId4","db_1:table_04");
   
   //Each module defines its own partition table:
   {sku_info,sku_stock……}
   
   How to implement the code? thanks
   

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590268685
 
 
   > I don't understand your question clearly. Do you mean that you want only configure `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?
   
   besides `defaultDatabaseStrategy` and `defaultTableStrategy`,   Can only define the tables who need sharding? 

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590636845
 
 
   > > another question:
   > > one existing project, now I want to introduce sharding-jdbc to sharding db and table, my existing table : table(no suffix)、table_001、table_002.... table_00n,like this define, How to configure actualDataNodes ?
   > > Please help me ,thank you!
   > 
   > configure actualDataNodes like follow:
   > 
   > ```yaml
   > actualDataNodes: ds.table,ds0.table00$->{1..9},ds0.table01$->{1..9} ...
   > ```
   
   thank you very much!!!

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

[GitHub] [incubator-shardingsphere] fantacy2001 removed a comment on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 removed a comment on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590256660
 
 
   > Hi, @fantacy2001 ,
   > 
   > ShardingSphere need you configured actual data nodes if you want to shard both datasources and tables. If there are no `actualDataNodes` configured, ShardingSphere can't know what's the Possible shardingNodes which should be input into your sharding algorithms.
   > 
   > For your situation, I think you can have a try like follow:
   > 
   > ```yaml
   > dataSources:
   >   ds_0: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   >   ds_1: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   > 
   > 
   > shardingRule:
   >   tables:
   >     tableA: 
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4}   
   >     tableB:
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4} 
   >   defaultDatabaseStrategy:
   >     stardard:
   >       shardingColumn: xxx
   >       preciseShardingAlgorithm: ${your.algorithm}
   >   defaultTableStrategy:
   >     stardard:
   >       shardingColumn: yyy
   >       preciseShardingAlgorithm: ${your.algorithm}
   > ```
   > 
   > and map the actual tableName in your algorithms.
   
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590270280
 
 
   > > I don't understand your question clearly. Do you mean that you want only configure `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?
   > 
   > besides `defaultDatabaseStrategy` and `defaultTableStrategy`, Can only define the tables who need sharding?
   
   Do you mean you want just configure which tables you want to shard without actualDataNodes?

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

[GitHub] [incubator-shardingsphere] fantacy2001 opened a new issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 opened a new issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431
 
 
   Does sharding JDBC support the following? Only the default fragmentation fields and strategy are configured for the databases and tables. The actual data nodes of tables are not configured. The assign tables are obtained through my customized mapping(myself java code). 
   I have many modules in my project. Each module only configures tables participating in sharding, and all projects share a common customized sharding rule.
   For example:
   //my customized mapping(sharding rule)
   Map<String,String> shardingMap = new HashMap<>();
           shardingMap.put("tenantId1","db_0:table_01");
           shardingMap.put("tenantId2","db_0:table_02");
           shardingMap.put("tenantId3","db_1:table_03");
           shardingMap.put("tenantId4","db_1:table_04");
   
   //Each module defines its own partition table:
   {sku_info,sku_stock……}
   
   How to implement the code? thanks
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590621931
 
 
   > another question:
   > one existing project, now I want to introduce sharding-jdbc to sharding db and table, my existing table : table(no suffix)、table_001、table_002.... table_00n,like this define, How to configure actualDataNodes ?
   > Please help me ,thank you!
   
   configure actualDataNodes like follow:
   ```yaml
   actualDataNodes: ds.table,ds0.table00$->{1..9},ds0.table01$->{1..9} ...
   ```

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

[GitHub] [incubator-shardingsphere] KomachiSion closed issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion closed issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431
 
 
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590269730
 
 
   > > I don't understand your question clearly. Do you mean that you want only configure `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?
   > 
   > besides `defaultDatabaseStrategy` and `defaultTableStrategy`, Can only define the tables who need sharding?
   
   it's ok, if configured `defaultDatasourceName`,  the SQL which is not sharding table will be routed to the default datasource. If no `defaultDatasourceName` configured, the SQL which is not sharding table will be random to one datasource you configured.

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

[GitHub] [incubator-shardingsphere] kimmking commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590174717
 
 
   You wanna "sku_info" literally instead of "table" of "db_0:table_01" in runtime?

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

[GitHub] [incubator-shardingsphere] KomachiSion removed a comment on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion removed a comment on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590269730
 
 
   > > I don't understand your question clearly. Do you mean that you want only configure `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?
   > 
   > besides `defaultDatabaseStrategy` and `defaultTableStrategy`, Can only define the tables who need sharding?
   
   it's ok, if configured `defaultDatasourceName`,  the SQL which is not sharding table will be routed to the default datasource. If no `defaultDatasourceName` configured, the SQL which is not sharding table will be random to one datasource you configured.

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590262473
 
 
   > Hi, @fantacy2001 ,
   > 
   > ShardingSphere need you configured actual data nodes if you want to shard both datasources and tables. If there are no `actualDataNodes` configured, ShardingSphere can't know what's the Possible shardingNodes which should be input into your sharding algorithms.
   > 
   > For your situation, I think you can have a try like follow:
   > 
   > ```yaml
   > dataSources:
   >   ds_0: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   >   ds_1: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   > 
   > 
   > shardingRule:
   >   tables:
   >     tableA: 
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4}   
   >     tableB:
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4} 
   >   defaultDatabaseStrategy:
   >     stardard:
   >       shardingColumn: xxx
   >       preciseShardingAlgorithm: ${your.algorithm}
   >   defaultTableStrategy:
   >     stardard:
   >       shardingColumn: yyy
   >       preciseShardingAlgorithm: ${your.algorithm}
   > ```
   > 
   > and map the actual tableName in your algorithms.
   
   tenantId on my example is shardingColumn,my general mapping only defines the suffix of the table name and database name, it is used by all modules.  Whether each module can only configure tables participating in sharding. Then take the general mapping and assemble the real table according to the configured partition table name into the sharding algorithms ?
   if i have configured 'actualDataNodes', all modules need to be configured it。
   the other question:
   sharding tablename: table(no suffix)、table_001、table_002.... table_00n,like this def, How to implement in the configuration file?
   Please help me out of your busy schedule. Thank you very much!!!

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590276807
 
 
   > > > I don't understand your question clearly. Do you mean that you want only configure `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?
   > > 
   > > 
   > > besides `defaultDatabaseStrategy` and `defaultTableStrategy`, Can only define the tables who need sharding?
   > 
   > Do you mean you want just configure which tables you want to shard without actualDataNodes?
   
   yes, i mean this

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590307474
 
 
   > Possibly not, no actualDataNodes means that you want shard datasource only. And if you want to shard both datasources and tables, you should configure actualDataNodes ensure the input of your sharding algorithm is correct.
   
   o, understand, thanks very much!!
   another question:
   one existing project,  now I want to introduce sharding-jdbc to sharding db and table, my existing table : table(no suffix)、table_001、table_002.... table_00n,like this define,  How to configure actualDataNodes ?
   Please help me ,thank you!
   

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

[GitHub] [incubator-shardingsphere] fantacy2001 closed issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 closed issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431
 
 
   

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590255572
 
 
   > You wanna "sku_info" literally instead of "table" of "db_0:table_01" in runtime?
   yes,I want to use my own mapping to find the real table name into the  sharding algorithms.
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590175902
 
 
   Hi, @fantacy2001 ,
   
   ShardingSphere need you configured actual data nodes if you want to shard both datasources and tables. If there are no `actualDataNodes` configured, ShardingSphere can't know what's the Possible shardingNodes which should be input into your sharding algorithms.
   
   For your situation, I think you can have a try like follow:
   
   ```yaml
   dataSources:
     ds_0: !!com.zaxxer.hikari.HikariDataSource
       driverClassName: com.mysql.jdbc.Driver
       jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
       username: root
       password:
     ds_1: !!com.zaxxer.hikari.HikariDataSource
       driverClassName: com.mysql.jdbc.Driver
       jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
       username: root
       password:
   
   
   shardingRule:
     tables:
       tableA: 
         actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4}   
       tableB:
         actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4} 
     defaultDatabaseStrategy:
       stardard:
         shardingColumn: xxx
         preciseShardingAlgorithm: ${your.algorithm}
     defaultTableStrategy:
       stardard:
         shardingColumn: yyy
         preciseShardingAlgorithm: ${your.algorithm}
   ```
   
   and map the actual tableName in your algorithms.

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

[GitHub] [incubator-shardingsphere] fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
fantacy2001 commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590256660
 
 
   > Hi, @fantacy2001 ,
   > 
   > ShardingSphere need you configured actual data nodes if you want to shard both datasources and tables. If there are no `actualDataNodes` configured, ShardingSphere can't know what's the Possible shardingNodes which should be input into your sharding algorithms.
   > 
   > For your situation, I think you can have a try like follow:
   > 
   > ```yaml
   > dataSources:
   >   ds_0: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   >   ds_1: !!com.zaxxer.hikari.HikariDataSource
   >     driverClassName: com.mysql.jdbc.Driver
   >     jdbcUrl: jdbc:mysql://localhost:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   >     username: root
   >     password:
   > 
   > 
   > shardingRule:
   >   tables:
   >     tableA: 
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4}   
   >     tableB:
   >       actualDataNodes: ds_0.tenantId&->{1..2},ds_1.tenantId{3..4} 
   >   defaultDatabaseStrategy:
   >     stardard:
   >       shardingColumn: xxx
   >       preciseShardingAlgorithm: ${your.algorithm}
   >   defaultTableStrategy:
   >     stardard:
   >       shardingColumn: yyy
   >       preciseShardingAlgorithm: ${your.algorithm}
   > ```
   > 
   > and map the actual tableName in your algorithms.
   
   

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590278255
 
 
   Possibly not, no actualDataNodes means that you want shard datasource only. And if you want to shard both datasources and tables, you should configure actualDataNodes ensure the input of your sharding algorithm is correct.

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

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code

Posted by GitBox <gi...@apache.org>.
KomachiSion commented on issue #4431: sharding-jdbc4,How to configure only tables that need to be fragmented through default config and customized code
URL: https://github.com/apache/incubator-shardingsphere/issues/4431#issuecomment-590265134
 
 
   I don't understand your question clearly. Do you mean that you want only configure  `defaultDatabaseStrategy` and `defaultTableStrategy` without `tables`?

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