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
GrantMGrantM 

Updating 2000 objects at once

Hi

I am trying to update 2000 Case objects in one batch.

Currently i am using the sforceservice.update(sObject[]) method to update these object.
As this is limited to 200 objects per update, i have to break down my array an update these 200 at a time.

This takes about 7 minutes to run.

Is there any better method i should be using, or is this the only way

TIA

GrantM

SuperfellSuperfell
This is the best way to do it. Make sure you're using HTTP 1.1 persistent connections and gzip compression.
GrantMGrantM
how do i check that?
SuperfellSuperfell
There's a technote on adding gzip .NET, it doesn't do it by default. Persistent connections are the default in .NET, so the only thing that would stop that is if you're going through a proxy server that doesn't support persistent connections.
GrantMGrantM
ok, thanks for your advice