MySQL Forums
Forum List  »  Custom Storage Engines

Index number mapping
Posted by: Jonathan Ellithorpe
Date: July 19, 2016 02:14PM

Reading the documentation here:

https://dev.mysql.com/doc/internals/en/implementing-records-in-range-method.html

I see that the 'records_in_range' method (and others) take an uint to refer to the index to use for the method, but I don't understand when/where this mapping from integers to indices is defined.

For instance, when a table is created with a primary key and an index on the primary key, what is the resulting number of that index?

I also don't see anywhere in the documentation about how indices actually get created. Perhaps this is where the storage engine allocates ids for the created indices?

Could someone please point me in the right direction here?

Thanks,
Jonathan

Options: ReplyQuote


Subject
Views
Written By
Posted
Index number mapping
1198
July 19, 2016 02:14PM
452
July 30, 2016 04:05AM
400
September 18, 2016 05:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.