This article is the second part of the series related to MySQL Invisible Column started here.
This post covers why Invisible Column is important for InnoDB Storage Engine.
To start, let me explain briefly how InnoDB deals with Primary Key and why an good primary key is important. And finally, why having a Primary Key is also important.
How does InnoDB Stores Data?
InnoDB stores data in table spaces. The records are stored and sorted using the clustered index (the primary key): they are called index-organized tables.
All secondary indexes also contain the primary key as the right-most column in the index (even if this is not exposed). That means when a secondary …
[Read more]