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
ch ranjeethch ranjeeth 

how to insert 1 millions records using batch apex?

You'll find everything you need to know about how to do this right here: the Bulk Api is what you want.