when i update a single record from UI..the trigger fires properly and does it thing but when i use data loader to update 1200 records then trigger is not fired for all records.
The IF condition is getting true but not executing the method when using data loader.
if(Trigger.isAfter && trigger.isUpdate){
set<Id> sL = new set<Id>();
for (lead l : trigger.new) {
if ((l.field0__c != trigger.oldMap.get(l.Id).field0__c)
|| (l.field1__c!= trigger.oldMap.get(l.Id).field1__c)
|| (l.field2__c!= trigger.oldMap.get(l.Id).field2__c)
|| (l.field3__c!= trigger.oldMap.get(l.Id).field3__c)) {
sL.add(l.Id);
}
}
if (!sL.isEmpty()) {
ClassName.Metod(sL);
}
}
ClassName.Metod()
properly bulkified?