MySQL database schema

1. Advantages of MySQL master-slave replication
: read and write separation, and improve the performance of reading.
Disadvantages :
1. Write cannot be expanded and cannot be cached
2. Replication delay
3. Lock table rate increases
4. Table becomes larger, cache rate

2. MySQL vertical partitioning (sharding) Advantages
: data is independent and does not affect each other
Disadvantages :
1. Associated query
2. Cannot solve the problem of skyrocketing data volume in a single table

3. MySQL horizontal sharding (Sharding)
1. Sharding Table dimension selection
2. Sub-database sub-table strategy, hash, mod

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326048345&siteId=291194637