fzyzcjy commented on issue #24480: URL: https://github.com/apache/shardingsphere/issues/24480#issuecomment-1465622512
@tristaZero Hi, I know it by: Create an extra table, say, `message_extra` with column `another_id` and `chat_id`, and `another_id` is sharding key. Then, when I want to query `SELECT FROM message WHERE another_id IN (100,200,300)`, I will firstly execute `SELECT ... FROM message_extra WHERE another_id IN (100,200,300)`. By doing this extra query, I know 200 is in shard A and another_id=300 is in shard B. -- 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]
