Sub-library sub-table, read-write separation concept

1. Separation of reading and writing

Because Internet applications read more and write less, the disadvantages of separate read and write are
disadvantages.
Master-slave synchronization is slow or synchronization is down.

2. Sub-library and sub-table

Vertical split

Disadvantages:

Business tables cannot be joined, only through the interface

Cross-database transactions cannot be guaranteed

After vertical segmentation, there is still a problem of huge single-table data

Split horizontally

Disadvantages It is
not easy to determine the split rule

Fragmentation transaction consistency is difficult to resolve

Difficulty in data migration and maintenance for secondary expansion

Published 33 original articles · praised 37 · 110,000 views

Guess you like

Origin blog.csdn.net/hagle_wang/article/details/105108524