+ Start a Discussion
priya123priya123 

Trigger to create the records in batch mode

Hi,

 

    I just created one custom object Called "Busienss profile Track"for Account. So here, if new account is created or any of the fields updated from Account, then my trigger will create the tracking record in this Custom object. So each and every time, record is created.

 

  But here the pbm, in Business they are going to insert some lakhs of Account records.So at this time many Business Profile Track records will be created for each and every field of Account.My trigger will work for less number of records.

 

  So anyone please help how to handle the above situation to handle the lakhs of record creation.

 

Thanks,

Priya.

Scott_VSScott_VS

As long as you properly bulkify your trigger, it should be able to handle a large operation.

 

http://wiki.developerforce.com/page/Best_Practice:_Bulkify_Your_Code