Inquire
Small result sets drive large result sets
index
Single index or joint index is in, but try to match exactly
Transaction optimization
Use small transactions as much as possible
Schema
Fields that take up a lot of space but are infrequently accessed can be split into a new table
Choose the appropriate field type
Database middleware
MySQL Proxy;Amoeba
Branch library
Vertical splitting of connected business, well-split business can be split directly
The splitting is not very good. The data that needs to be joined between modules passes through the inter-module business interface, or the tables that need JOIN are put into a module and the corresponding table, or multiple modules share data sources, or the table is redundant. More than one module [scenario of writing less and reading more]
sub-table
Distributed transaction: used when it must be used; the application layer controls the small transactions of each database, and the application support needs to be robust enough; the smallest possible transaction
Cross-node JOIN: After the application fetches data from each interface, the application layer performs JOIN
Distributed database NDB Cluster