Concept Flow - Primary vs secondary indexes
Start Query
Check Primary Index
Yes / No
Use Primary
Fast Access
Use Secondary
Slower Access
Retrieve Data
Return Result
When a query runs, the system first looks for a primary index to find data quickly. If none matches, it checks secondary indexes. If no index helps, it scans the whole table.