Re: Fastest record create method with JET 4.0
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Wed, 13 Sep 2006 12:28:11 -0500
"Desertphile" <desertphile@xxxxxxxxxxx> wrote in message
news:1158159248.739888.253840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
still
Ralph wrote:
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message
news:uWQiNCz1GHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
As someone else pointed out, DAO code may be written shoddy and
differencedo 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.
Where do they say that?
I believe Microsoft do acknowledge DAO is faster than ADO for Access
databases
See http://support.microsoft.com/kb/225048/
where you can read what DAO and ADO philosophy.
But frequently programmers use ADO badly so the performance
ADOmay
not be that apprecaibly different.
Stephen Howe
Just to be boorish for a moment.
MS has switched its "pronouncements" several times concerning DAO. When
slippedfirst appeared, ADO was touted as being the only way to go, and that all
subsquent development of DAO was going to be discontinued. DAO 3.6
authorsin rather quietly.
While I am not sure MS themselves ever stated "ADO is faster". Many
extraand insiders certainly did. I believe most of the time it was just an
slicker,adjective tacked on without too much thought (and certainly without
testing). After all once you have proclaimed something as prettier,
ADO,cleaner, simpler, neater, ... What is more natural that to proclaim it
'faster'?
The waters also became cloudier at this time, because OLE DB was also
introduced. Many comparisons were made at the time comparing DAO with
ODBCwith the unfortunate underlying, but understated, actual comparison of
arewith OLE DB. "DAO" always came out the loser. (With one exception DB2)
You make a good point, that ultimately it always comes down to how you
chewingusing the tool. A common discovery when visiting teams using ADO and
andaway on some 'performance' problem, is to examine the connection string
learn that they are using ODBC or an outdated provider. <g>
I have the year 2002 MSDN CDs. "Choosing a Data Access Strategy" lists
ADO and RDO as "Very Fast," and says nothing about DAO speed: it says
one may wish to stick with DAO if one has a lot of existing DAO code.
The MSDN article "Data Access Using Data Access Objects (DAO)" states
one of the traits of DAO is "Adequate-to-slow performance." It then
states "Compared to the newer ActiveX Data Objects (ADO) or Remote Data
Objects (RDO) technologies, Data Access Objects (DAO) is a slower, less
capable data access alternative," however I have not known that to be
the case. As you pointed out, the author of that article may have been
making assumptions not based in reality, or perhaps it was true four
years ago with older software.
There are several variables that modify speed, of course. Surely there
must be web pages that show tests that compare various data access
technologies.
When I was collecting data from an AS/400 via ODBC, I used ADO. It was
gawdawful slow because IBM's ODBC driver sucked limes, and the AS/400
would refuse to grant me an adequate slice of CPU time. It was also
transported over IBM Token Ring (shudder). One would hope that IBM has
improved their AS/400 connectivity to client machines.... but one never
knows with IBM. :-)
I couldn't think of any specific references (and too lazy to go look) but I
always got the distinct impression that MS used to pitch ADO as faster. And
with most database it was.
It is interesting that you mentioned the AS/400. We had exactly the same
experience years ago. And discovered that DAO was much faster. I found out
that the client engine for AS/400 is ODBC at heart. We eventually
dramatically improved performance by using what I vaguely remember as a 3rd
party <?> driver. Can't remember the name to save my soul.
It is one of those business critical legacy apps that will never die. I get
a laugh because everytime they change out a project manager or get a new
developer, one of the first things they recommend is using ADO. So every
year we have to come back and tell them to leave the damn thing alone. <g>
-ralph
.
- Follow-Ups:
- Re: Fastest record create method with JET 4.0
- From: Desertphile
- 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
- From: Desertphile
- Re: Fastest record create method with JET 4.0
- From: Stephen Howe
- Re: Fastest record create method with JET 4.0
- From: Ralph
- Re: Fastest record create method with JET 4.0
- From: Desertphile
- Re: Fastest record create method with JET 4.0
- Prev by Date: Re: Data from MS SQL db to Excel
- 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
|
|