Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

As mentioned in Salesforce doc that it can return 2000 records but what about scanning 500K records.

Is there any limit on records that will be scanned.

share|improve this question

1 Answer 1

SOSL doesn't scan anything. It leverages the system's indexes to find results. It doesn't matter if there are five records or five hundred million records, it will return the first set of most relevant records. Records not yet indexed (usually within a few seconds to minutes of creation) will not be scanned or searchable.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.