Google News
logo
Salesforce - Interview Questions
What are the differences between SOQL and SOSL in salesforce?
SOQL(Salesforce Object Query Language) SOSL(Salesforce Object Search Language)
Using SOQL we can search only one object at a time Using SOSL we can search multiple objects at a time
We can query on all fields of any of the datatype  We can query on the fields whose data type is phone, text, and email
DML operations can be performed on query results DML operations cannot be performed on search results
Indexing happens synchronously Indexing happens asynchronously
We can use SOQL in the classes and triggers SOSL cannot be used in triggers but can be used in classes
Advertisement