Salesforce Decode
Salesforcedecode
SOQL & Data ModelingAdvancedConceptualperformancesoqlselectivityindexes

What makes a SOQL query selective, and why does it matter?

Scenario

A trigger query on a 4-million-row object throws "Non-selective query against large object type".

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.