Unique Index
If you can teach Unique Index using lookup by roll, you know it. If you only know the heading, you don’t.
For Unique Index, an index is in play. Don’t blame it until you have traced lookup by roll.
Skip Unique Index and indexing a low-cardinality flag only shows up in a big table.
Unique Index shows up in a big table. Name lookup by roll, not “a real-world scenario”.
If lookup by roll breaks under Unique Index, check indexing a low-cardinality flag only first.
Unique Index is not a lonely heading. Meera ties it to lookup by roll.
Viva for Unique Index — what it is → PRIMARY KEY(roll) + INDEX → the mistake (indexing a low-cardinality flag only).
Say Unique Index in one breath, then PRIMARY KEY(roll) + INDEX, then indexing a low-cardinality flag only.