Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "seq_in_index" in MySQL database indexing means?

Index Results When an index is created, there is one column I have doubts about, in concern with the physical linking of the data nodes. When 2 "seq_in_index" are same, how are they placed in the node? How is the structure of the index binary tree in that case?

like image 550
Prateek Shankar Avatar asked Sep 28 '16 11:09

Prateek Shankar


1 Answers

It is the position of the column in the index.

Example:

INDEX some_idx(column_a, column_b)

seq_in_index for column_a is 1 and for column_b is 2

In your case the compound index is

INDEX email(email, status)
like image 71
Paul Spiegel Avatar answered Sep 18 '22 05:09

Paul Spiegel