Let's say I have two custom obejcts -
Class object is connected with object Student through lookup relationship. The
Class object also has a formula field (
Now while doing SOQL, which one I should use, the formula field or the relationship to get better performance?
Select Student_UniqueCode__c from Student__c
Select Student__r.uniqueCode__c from Student__c
Select <..> from Student__c where Student_UniqueCode__c like ...
Select <..> from Student__c where Student__r.uniqueCode__c like ...