Skip to main content
Hi All,

What is the best way in terms of performace, defining a formula field for related objects or using the clause __r  directly in the query ?

Which one is the best approach ?

e.g:
  1. Select Id, Name From Object where Custom_Formula_Field__c = 'Any'
  2. Select Id, Name From Object where Custom Related_Object__r.Custom_Field__c = 'Any'

Many thanks!

 
1 resposta
0/9000