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