Index Files in Databases
I’m currently reading Database Internals by Alex Petrov and came across the “Index Files” section. Primary and secondary indexes were being discussed and it was interesting to see how these indexes interact with data records. “A primary index is usually assigned to a primary key or a set of keys identified as primary. All other indexes are called secondary.” I never really thought about what a secondary index was referencing. Just that it was another way to optimize search for a record via secondary indexed column....