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
VJayVJay 

50k record is inserted through soql? how we can insert 50001 record.

Narender Singh(Nads)Narender Singh(Nads)
Hi
You should look at using Batch Apex to accomplish your goals.
 
You cannot retrieve more than 50,000 records your SOQL calls in a single context.
 
However, with  Batch Apex your logic will be processed in chunks of anywhere from 1 to 200 records in a batch.
 
You'd need to modify your business logic to take the batching into account if necessary.
 
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm