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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.