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
prakashedlprakashedl 

Number of Records in DML limit

Do we have a limit of one thousand records that can be processed per DML statement? I believe, that was to do with the earler collection limit of one thousand records. Since, there is no limit on number of records in the collection, do we still have a limit on the number of records processed per DML statement. Please advice.

adam_purkissadam_purkiss

Yes.  Additional limitations on DML in Triggers as well due to 200 possible elements in trigger array (ie - needs to be bulkified). 

 

 

incuGuSincuGuS

It depends on where the code is running, if inside a test method, a trigger , a class, etc.

 

The limit is the amount of total records queried, you no longer have a limit in collections.

prakashedlprakashedl

Thanks. Code is running inside the class