Tag: Database

Clustered index and non-clustered index

·2195 words·5 min read

This article introduces the physical storage methods of clustered indexes and non-clustered indexes in MySQL. Clustered indexes store the table's index and data together, while non-clustered indexes store them separately. The article further analyzes the performance differences between the two index structures in query and modification operations: the clustered index is faster during query, but may cause B+ tree splitting and merging during modification, while the non-clustered index is relatively less time-consuming....