How to query a piece of data from millions and tens of millions of data?

Idea: The big table is split into small tables, and the interface guides the small table.

Divide tables into multiple small tables by database id, and set indexes for each small table. The query interface points to the corresponding small table based on the id. If there is more data, consider the database sub-library.

Guess you like

Origin www.cnblogs.com/ivy-xu/p/12691448.html