Performance problem on import
- From: "Jeff McKay" <comaxis@xxxxxxxxx>
- Date: Mon, 4 Feb 2008 11:14:00 -0800
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.
.
- Follow-Ups:
- Re: Performance problem on import
- From: Jeff Boyce
- Re: Performance problem on import
- Prev by Date: Re: Export to fixed in 2007 - bug?
- Next by Date: Re: Performance problem on import
- Previous by thread: Re: Export to fixed in 2007 - bug?
- Next by thread: Re: Performance problem on import
- Index(es):
Relevant Pages
|
Loading