Article View: borland.public.cppbuilder.database.ado
Article #5823Re: ADO will get slower and slower the farther into a recordset I go. WHY????
From: Michael Crapo
Date: Fri, 26 Jan 2001 15:43
Date: Fri, 26 Jan 2001 15:43
39 lines
2272 bytes
2272 bytes
Yuancai Thanks for the advice and the site. I found that the curser was set to client. When I set the curser to Server side it speed things up a lot. In fact one process that validated and moved over half a million records that took 11 hours dropped down to 35min with that one modification. Mike On Wed, 24 Jan 2001 14:56:18 -0500, "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com> wrote: >Hi, Michael: > Did you try using OLEDB raw interfaces to speed up navigating records. >Here is the excellent site you may be interested in, >http://www.geocities.com/oledbpro/. The site has many OLEDB examples using >both Visual C++ and Borland C++ Builder. > >Yuancai (Charlie) Ye > >"Michael Crapo" <mcrapo@tng-ida.com> wrote in message >news:3a687d67.14273083@newsgroups.borland.com... >> Hello. >> >> I have test this with Access and SQL Server. I connect to the >> database using the TADOConnection. Then run a query using TADOQuery >> that is selecting one row from a table. >> >> The recordcount is about 100,000. I then loop through the Records >> using the TADOQuery::Next() function. The further into the recordset >> I go, the slower the fields are returned. I am using defaults for >> borlands defaults for ADO. Does anyone know what is wrong, and how to >> get around this. It gets as bad as 1 second to return 1 record..... >> >> TIA for you help >> Mike > >
Technical Details
Message-ID:
<3a719a8d.1355779@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.14.99.1References:
<3a687d67.14273083@newsgroups.borland.com> <3a6f3212$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,3df3c77078006232 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-01-26 07:48:23 PST From: mcrapo@tng-ida.com (Michael Crapo) Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: ADO will get slower and slower the farther into a recordset I go. WHY???? Date: Fri, 26 Jan 2001 15:43:13 GMT Message-ID: <3a719a8d.1355779@newsgroups.borland.com> References: <3a687d67.14273083@newsgroups.borland.com> <3a6f3212$1_2@dnews> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 207.14.99.1 X-Trace: 26 Jan 2001 07:47:08 -0800, 207.14.99.1 Lines: 40 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.14.99.1