database - mysql primary key,is it a hash index or b-tree? -


the primary key automaticlly created , has index type "primary". hash or b-tree.

cos b-tree rangeable , hash not.

so, if "primary" b-tree can query range selection.

unless you're using memory access method, mysql indexes organized btrees , can suitable range scan queries.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -