Re: Fastest record create method with JET 4.0
- From: "Desertphile" <desertphile@xxxxxxxxxxx>
- Date: 12 Sep 2006 13:08:46 -0700
pauladams777 wrote:
Thanks Desertphile,
I remembered Microsoft talking about the ADO / DAO comparison at a
developers conference some time back and running a demo program - I think
that could be the one they showed.
I will have a look and see how much it gets me "in"...
As someone else pointed out, DAO code may be written shoddy and still
do the job. Even with lazy code, DAO ought to be faster at inserting
records into an Access database than ADO, even though Microsoft says
otherwise.
If it is much data, you could start the insert process by first
expanding the Access database by many "pages" based on the Paradox
record count of what is anticipated to be added to the Access database:
that way the database only expands once instead of several times as
data is added.
The following is from Microsoft's Knowledge Base: "DAO provides a
consistent programming model for situations where some of the data
access services must be provided using Microsoft Jet." Since your
write-to database is a JET Access .MDB file, DAO is the recomended data
transport layer.
Microsoft says that DAO is slower than ADO and RDO: merely inserting
records into a .MDB file, though, appears by my tests to be faster with
DAO by around 30%. Many of the MS Knowledgebase articles state that one
should use ADO instead of DAO, since DAO has a larger "overhead" and
has fewer connectivity issues (present and future). If you expect no
future need to modify your Paradox-to-Access translation program, such
as sending the translation to an SQL server on a LAN or over the
Internet, then DAO will be just fine; otherwise you might want to stay
with ADO.
OLE DB is also an option, as is RDO. Dang, too may options to choose
from! :-)
.
- Follow-Ups:
- Re: Fastest record create method with JET 4.0
- From: Stephen Howe
- Re: Fastest record create method with JET 4.0
- References:
- Re: Fastest record create method with JET 4.0
- From: Desertphile
- Re: Fastest record create method with JET 4.0
- Prev by Date: How to Connect my Database to my web page.(or web server)
- Next by Date: Re: Fastest record create method with JET 4.0
- Previous by thread: Re: Fastest record create method with JET 4.0
- Next by thread: Re: Fastest record create method with JET 4.0
- Index(es):
Relevant Pages
|
|