function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
V AnandV Anand 

Is trigger fired on bulk upload?

Hi...

 

I am trying to insert more thant 60,000 records throuth Data loader in my instance and there is a berfore insert trigger on that  object..

 

my question is that ... Is that trigger  fired on all 60,000 records?

 

I am using SOQL query in trigger, as per governor limits SOQL query handles only 10,000 records ... is it possible to fire on all records ? any one please clarify my doubt .
 

Best Answer chosen by Admin (Salesforce Developers) 
Shailesh DeshpandeShailesh Deshpande
Yes. Your trigger will get fired. However as you are using Data Loader, it will upload a batch of 200 records at a time. So your trigger should not hit the limit.

All Answers

MagulanDuraipandianMagulanDuraipandian

Hi,

Triggered will be fired for all those 60k records.

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

SFDC Blog

SFDC Site

If this post is your solution, kindly mark this as the solution and click Kudos.

Shailesh DeshpandeShailesh Deshpande
Yes. Your trigger will get fired. However as you are using Data Loader, it will upload a batch of 200 records at a time. So your trigger should not hit the limit.
This was selected as the best answer
Vinit_KumarVinit_Kumar

Also,You need to make sure that your Trigger is written to handle bulk data,i.e. your Trigger should be a bulkified one.