J
Jeff McKay
I have created a database containing one master table, that has links to two
child tables.
I am attempting to do a mass import of data to this database using a C++
program and the
ODBC API. I use the SQL "Insert" command to create a record in the master,
and then
mutiple insert commands on both child tables (from 1 to 10 entries on one
child, usually 0-2 on the second).
This works great, until I get to about 50 or so entries in the master table.
Then everything
slows to a crawl. I see delays of 2 or 3 seconds on every insert command.
Not workable
(I expect to import hundreds or thousands of records per database). Any
ideas about what
is going wrong? I suspect that the JET database engine is just not very
efficient, taking a long time to update key chains, etc. But I don't really
understand why it works fine for the first few dozen records. Maybe some
kind of memory caching?
By the way this same program works fine importing thousands of entries into
SQL Server.
child tables.
I am attempting to do a mass import of data to this database using a C++
program and the
ODBC API. I use the SQL "Insert" command to create a record in the master,
and then
mutiple insert commands on both child tables (from 1 to 10 entries on one
child, usually 0-2 on the second).
This works great, until I get to about 50 or so entries in the master table.
Then everything
slows to a crawl. I see delays of 2 or 3 seconds on every insert command.
Not workable
(I expect to import hundreds or thousands of records per database). Any
ideas about what
is going wrong? I suspect that the JET database engine is just not very
efficient, taking a long time to update key chains, etc. But I don't really
understand why it works fine for the first few dozen records. Maybe some
kind of memory caching?
By the way this same program works fine importing thousands of entries into
SQL Server.