huyu-tom commented on issue #32734:
URL: 
https://github.com/apache/shardingsphere/issues/32734#issuecomment-2322738817

   <img width="1047" alt="image" 
src="https://github.com/user-attachments/assets/70dfead2-eb66-4057-be88-f07561305241";>
   如何将动态生成表,直接add到doSharding方法传入的第一个参数里面(LinkedhashSet类型),他是可以执行成功的
   10:32:14.776 [main] INFO ShardingSphere-SQL -- Logic SQL: select * from 
charge_receivable where inner_org_id = 100
   10:32:14.776 [main] INFO ShardingSphere-SQL -- Actual SQL: 
apl_sharding_test_db1 ::: select * from charge_receivable_sharding100 where 
inner_org_id = 100
   
   我个人感觉dosharding返回的结果你们会在传入的参数里面再次判断是否存在,如果不存在的话,就抛出异常,我感觉可以不用加这个判断!!!
   
   You actually didn't understand what I meant. You are completely calling the 
public API of Java JDBC, and you don't really touch upon the essence of 
metadata changes in ShardingSphere JDBC DataSource.
   其实我不想去触发配置的更改, 
因为租户ID无法确定数据个数,如果只是将所有的租户的表名加载到actual-data-nodes里面,这不是我所预期的,如果我有上万个租户id的话,例如我的业务里面有100张表的话,我都加载到acutal-data-nodes里面,那么我得消耗大量的内存(OOM)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to