我正在使用带有sprintboot的shardingsphere。逻辑表顺序被分成两个实际: order_0和order_1,order_0用于正常帐户,order_1用于测试帐户。
现在我想找一种方法,根据不同的角色来查询特定表(测试账号只能看到order_1中的数据) 1:https://shardingsphere.apache.org/
发布于 2021-10-12 03:45:11
分片只适用于水平缩放,最好使用sharding-key来拆分它们。
分片是ShardingSphere中的一个功能,在这个项目中还有很多其他功能。
围绕您的需求,最好在这里使用阴影功能。测试数据自动进入影子数据库,正常表进入在线数据库。
仅供参考:https://github.com/apache/shardingsphere/tree/master/shardingsphere-features/shardingsphere-shadow
https://stackoverflow.com/questions/69340427
复制相似问题