SOQL vs SOSL explaination

SOQL vs SOSL explaination:-
SOSL(Salesforce object search language) simplified :-
Facebook graph search is much-a-like SOSL, After searching something you can see results returned from name,post, pages which in turn like returning a List of list of sObjects.
SOQL(Salesforce object query language) simplified :-
SOQL is like searching your Facebook friend list which in turn like returning a List of sObjects.
Tabular comparison :-
SOQL
SOSL
Data retrieval done via using ‘SELECT’ keyword
Data retrieval done via using ‘FIND’ keyword
Data retrieval from single object plus related objects
Data retrieval from multiple objects.
Much-a-like querying on single table
Much-a-like querying on Multiple table
SOQL and SOSL generally have the same limitations
SOQL and SOSL generally have the same limitations
Governor Limits on SOQL and SOSL :-
SOQL Limits ->
Total number of SOQL queries issued in synchronous mode is 100, where in asynchronous mode it is 200,  records retrieved by SOQL queries is 50,000.
SOSL Limits ->
Total number of SOQL queries issued is 20, records retrieved by SOQL queries is 2,000.

Comments

Popular posts from this blog

Set Field-Level Security for a Field on Permission Sets Instead of Profiles (Generally Available)

Einstein GPT - Generative Responses : Summer'23 Salesforce Release

Program Assignment Invocable Action : Summer'23 Salesforce Release