AI로 번역했습니다. 아직 커뮤니티의 검토를 거치지 않았습니다. 영어로 읽기

Selectivity Threshold Explained (in English)

Updated 2026-11-07
Published 2023-12-15 · update checked 2026-11-07 · Watch on YouTube

What's changed since the video

Each change is dated and checked against Salesforce's own documentation.

  • The custom index threshold is 10%, not 15%. In the video the custom index line is said as 15% of the first million. Salesforce's figures: 10% of the first million records and 5% beyond, up to 333,333; for a standard index, 30% and 15%, up to 1 million (Make Salesforce Platform SOQL Query Selective, Salesforce Help, version 4, April 2026, checked 2026-11-01). Not a platform change: a slip in the recording.
  • One worked example is off. In the grid, 30% of 300,000 is said as 990,000. It's 90,000. Not a platform change.
  • The thresholds haven't moved. The Help article's figures were unchanged in April 2026, and Salesforce's Well-Architected guidance now calls selectivity "the single largest lever on whether a solution scales to millions of records or times out at hundreds of thousands" (Resource and Cost Optimization, checked 2026-11-01).

Still right

  • The query optimizer, the librarian, decides whether an index is worth using by comparing how many records a filter would return with how many the object holds. That proportion is the selectivity threshold.
  • "Everybody lives in Arizona": if almost every record matches, the index can't help, and going through it would be slower than reading the table.
  • A standard index allows 30% of the first million records and 15% of the records beyond the first million, up to 1 million. A query that's fast today can stop being selective as the data grows.

All videos in this series: 데이터 아키텍처

동영상은 클릭할 때만 YouTube에서 불러옵니다.