Re: need ideas on multi threaded db update



cj wrote:
I have to take all records in a SQL db that have an empty val_code
field and process and update the records with a code number in the
val_code
field.
The processing is done by sending select info from each record to a
remote server. The remote server returns the code number to be put in
the val_code field. The remote server will allow me to have up to 5
"sessions" open with it at a time.

How is the val_code derived from the data? If there are a limited number of
val_code values then you could get them all in one go, or at least implement
a local cache (Array/ArrayList/whatever else might be appropriate) so you
don't have to query the remote server so much.

Are you using one database to update another database on a different
computer, or is it all within the same database? If the latter then surely
it would be more efficient to do it all in a stored procedure in the
database.

Andrew


.



Relevant Pages

  • Re: Updating remote MySQL databases
    ... than over Internet directly to the database. ... > I want to maintain with the WinForms program. ... > remote server, that would probably be done with PHP or whatever. ... > the appropriate dialect down the TCP/IP connection from my local PC to ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: enterprise manager no longer connects to remote database
    ... Get onto the remote server and for the login, change the default database. ... Mike Epprecht, Microsoft SQL Server MVP ... Fasthosts technical support advise me to reload SQL Server ...
    (microsoft.public.sqlserver.setup)
  • RE: enterprise manager no longer connects to remote database
    ... 'MyRemoteID' is 'MyremoteDB' and the database 'nhmforum01' is not an option ... "Mike Epprecht " wrote: ... > Get onto the remote server and for the login, ...
    (microsoft.public.sqlserver.setup)
  • Re: Accessing .mdb data from a remote computer on a non asp application
    ... Is your "remote server" on your LAN? ... Open your database in Design View, and from the Database Window, Tools | ... Microsoft Access MVP ... a valid file name" and after looking in the error details I saw that c: ...
    (comp.databases.ms-access)
  • Re: Connecting to remote SQL Server
    ... There is a SQL Server database on that server. ... > My main development environment is Dreamweaver MX2004. ... User XXX has a login on the remote server, but does not have a user in the ...
    (microsoft.public.sqlserver.server)