You need to sign in to do that
Don't have an account?
Ramon Pereira
Bulk Updates
Staff,
Need an idea of how to upgrade over 20,000 records with an apex class.
I was thinking about scheduling the service and leave running overnight, however the limits have to be respected.
Does anyone have any idea how I can perform this update?
thank you
If you really want to do it using an apex class, I would suggest a Visual Force page, on a custom tab, with an 'upload file' button. Ask a bunch of different users to each load their own file of less than 20K.
Any chance you can use the Data Loader which can be run from a desktop?
All Answers
If you really want to do it using an apex class, I would suggest a Visual Force page, on a custom tab, with an 'upload file' button. Ask a bunch of different users to each load their own file of less than 20K.
Any chance you can use the Data Loader which can be run from a desktop?
You should be using Batch Class to update the records and then schedule it to run at a particular time.
Please go through the below links for the same :-
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm // This will tell you about Batch Class and examples
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm // This will tell you how to schedule it
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch.htm // About Batch apex