You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zhoubin7 (via GitHub)" <gi...@apache.org> on 2023/02/11 08:20:28 UTC

[GitHub] [shardingsphere] zhoubin7 opened a new issue, #24115: rules.tables,What about too many tables

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

   ## Question
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   shardingsphere: 5.3.0
   mysql: 8.0
   
   `dataSources:
     ds_jnmt:
       dataSourceClassName: com.zaxxer.hikari.HikariDataSource
       driverClassName: com.mysql.cj.jdbc.Driver
       jdbcUrl: jdbc:mysql://localhost:3306/ds_jnmt
       username: root
       password: root
     ds_jnmt_ymlj:
       dataSourceClassName: com.zaxxer.hikari.HikariDataSource
       driverClassName: com.mysql.jdbc.Driver
       jdbcUrl: jdbc:mysql://localhost:3306/ds_jnmt_ymlj
       username: root
       password: root
   
   rules:
   - !SHARDING
     tables:
       sys_user:
         actualDataNodes: ds_${['jnmt','jnmt_ymlj']}.sys_user
       sys_dept:
           actualDataNodes: ds_${['jnmt','jnmt_ymlj']}.sys_dept
       sys_role:
           actualDataNodes: ds_${['jnmt','jnmt_ymlj']}.sys_role
       sys_user_role:
           actualDataNodes: ds_${['jnmt','jnmt_ymlj']}.sys_user_role
     bindingTables:
       - t_orders,t_order_item
     broadcastTables:
       - sys_tenant
       - qrtz_blob_triggers
       - qrtz_calendars
       - qrtz_cron_triggers
       - qrtz_fired_triggers
       - qrtz_job_details
       - qrtz_locks
       - qrtz_paused_trigger_grps
       - qrtz_scheduler_state
       - qrtz_simple_triggers
       - qrtz_simprop_triggers
       - qrtz_triggers
     defaultDatabaseStrategy:
       standard:
         shardingColumn: tenant_id
         shardingAlgorithmName: database-inline
     defaultTableStrategy:
       none:
     defaultShardingColumn: tenant_id
   
     shardingAlgorithms:
       database-inline:
         type: CLASS_BASED
         props:
           strategy: STANDARD
           algorithmClassName: com.my.DatabasePreciseShardingAlgorithm
   
     keyGenerators:
         snowflake:
             type: SNOWFLAKE
   props:
     sql-show: true
     sql-simple: true
   
   `


-- 
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.apache.org

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


[GitHub] [shardingsphere] strongduanmu commented on issue #24115: rules.tables,What about too many tables

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24115:
URL: https://github.com/apache/shardingsphere/issues/24115#issuecomment-1426664726

   Hi @zhoubin7, you can try to use distsql to execute `CREATE SHARDING TABLE RULE` ——https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/.


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


[GitHub] [shardingsphere] zhoubin7 commented on issue #24115: rules.tables,What about too many tables

Posted by "zhoubin7 (via GitHub)" <gi...@apache.org>.
zhoubin7 commented on issue #24115:
URL: https://github.com/apache/shardingsphere/issues/24115#issuecomment-1426666603

   > 你好@zhoubin7,可以尝试使用distsql来执行`CREATE SHARDING TABLE RULE`—— [https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding -表规则/](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/create-sharding-table-rule/)。
   
   I didn't use shardingsphere-proxy.
   I'm using this shardingsphere 5.3.0


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


[GitHub] [shardingsphere] linghengqian commented on issue #24115: rules.tables,What about too many tables

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian commented on issue #24115:
URL: https://github.com/apache/shardingsphere/issues/24115#issuecomment-1738352211

   - The new SPI was introduced in the related PR at https://github.com/apache/shardingsphere/issues/22899 , some issue can now define `List<String>` via an new Row Value Expression SPI implementation.


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


[GitHub] [shardingsphere] linghengqian closed issue #24115: rules.tables,What about too many tables

Posted by "linghengqian (via GitHub)" <gi...@apache.org>.
linghengqian closed issue #24115: rules.tables,What about too many tables
URL: https://github.com/apache/shardingsphere/issues/24115


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