Optimize Select insert and update

  • Thread starter Thread starter User
  • Start date Start date
U

User

Hi folks,

Here is what I do:
I perform a SELECT to see if a record is in the DB before performing an
INSERT or UPDATE. I am receiving massive information to place in the
DB. Is there a better way to do it?

I use ADO recordset and ADO connector. Access 2000, win 2000.

Thanks :)
 
A "bulk" approach is often faster than a "record at a time" approach".

So, you might try to create a linked table to the source data (or, if this
is not possible, insert the data into an intermediate table), and then run
one insert query and one update query to move data from the linked table (or
intermediate table) to the destination table.
 
Thanks Brian,

I will work on it :)

Xelk

Brian said:
A "bulk" approach is often faster than a "record at a time" approach".

So, you might try to create a linked table to the source data (or, if this
is not possible, insert the data into an intermediate table), and then run
one insert query and one update query to move data from the linked table (or
intermediate table) to the destination table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top