实在没招的时候,才考虑分库分表。
一般来说,如果在使用水平分表的话,都会分到多个库中。
一个经验值,mysql一张表的记录不要超过500万条。
https://www.cnblogs.com/sunny3096/p/8595058.html
https://blog.youkuaiyun.com/hello1234554321/article/details/53200724?utm_source=blogxgwz5
比较好的结果是:数据相对均匀、导航相对容易、添加新的分片比较容易。
尽可能在设计上避免分布式事务。