Force Index
Force Index is simple if you keep it on paper. Amit uses it for lookup by roll in a big table.
Keep Force Index small. Amit should finish lookup by roll in a few lines, not a 40-line dump.
Without Force Index, a big table gets messy and lookup by roll is hard to trust.
Force Index shows up in a big table. Name lookup by roll, not “a real-world scenario”.
Force Index trap — indexing a low-cardinality flag only. Amit loses marks for that every viva.
Place Force Index next to nearby SQL work — PRIMARY KEY(roll) + INDEX is the link.
Viva for Force Index — what it is → PRIMARY KEY(roll) + INDEX → the mistake (indexing a low-cardinality flag only).
Board: lookup by roll. Dry-run Force Index. Name the trap: indexing a low-cardinality flag only.