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
Umesh BP 52Umesh BP 52 

Can i update 50000 records at a time?

 i need to update 50000 records at a time?
How to do?
Raj VakatiRaj Vakati
Its depdende on from where you want to upload 

If you want to do it from the batch or data loader it will run the data based on the batch job.. suppose if you have 50000 records if you set batch size as N it will run n times based on the based on bathc size 

if you want to do it from developer console ..Yes but make sure you dnt have any triggers other thinks 
 
List<Account> accs =[Select Id from Account Limit 50000]; 

for(Account a :accs){
	a.Name='Test';
}

update accs;