KomachiSion commented on issue #2826: Ability to define behaviour when sharding 
column is not present in the SQL
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2826#issuecomment-521911936
 
 
   > I have the same request.I modified the source code.
   > remove "null != HINT_MANAGER_HOLDER.get()" in HintManagerHolder.
   > Specify sharding fields based on table configuration at system startup。I 
have about 800 tables.
   > Don't know if there's a better way?
   
   I don't know your business logic and situation, so I have no suggest for you.
   And you said you have 800 tables, is it means you have 800 tables to shard? 
I don't think it is necessary for all tables to do sharding.
   
   For most of users, they want to shard tables by one or a bit of columns, and 
query by this sharding columns so that application and database can scan less 
rows.
   If you have many situation to query without sharding column, maybe it means 
you should to update your application structure rather than ShardingSphere.

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


With regards,
Apache Git Services

Reply via email to