Reader small image

You're reading from  Salesforce Data Architect Certification Guide

Product typeBook
Published inNov 2022
PublisherPackt
ISBN-139781801813556
Edition1st Edition
Right arrow
Author (1)
Aaron Allport
Aaron Allport
author image
Aaron Allport

Aaron Allport is a Chief Technical Officer, and has worked with CRM systems and integrations for his entire professional career. Aaron specializes in Salesforce technical architecture and integration, helping his clients ensure they get the most from their technology investment. Aaron has spoken at Dreamforce, written about everything from DevOps to Data Architecture online, and can regularly be found at the Salesforce London Developer Meetup.
Read more about Aaron Allport

Right arrow

Query and search optimization

As we explored in Chapter 6, Understanding Large Data Volumes, consider that Salesforce performs searches in a two-part process. The first part is the creation of a result set that is used to then perform the actual search. Let’s quickly remind ourselves how a result set is produced. When a search is invoked (be it through the Salesforce user interface, a Salesforce API, or Apex code), Salesforce will first search the indexes that have been created for the appropriate records. Taking those results, Salesforce will then apply access permissions, search limits, and any other filters or filter logic to narrow down the results into a result set. That result set is then used to perform an actual search for records in the underlying database.

The way to speed up searches is to think carefully about the indexing of fields that are used when searching in order to speed up the performance of those searches. As seen in Chapter 6, Understanding Large Data...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Salesforce Data Architect Certification Guide
Published in: Nov 2022Publisher: PacktISBN-13: 9781801813556

Author (1)

author image
Aaron Allport

Aaron Allport is a Chief Technical Officer, and has worked with CRM systems and integrations for his entire professional career. Aaron specializes in Salesforce technical architecture and integration, helping his clients ensure they get the most from their technology investment. Aaron has spoken at Dreamforce, written about everything from DevOps to Data Architecture online, and can regularly be found at the Salesforce London Developer Meetup.
Read more about Aaron Allport