🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4704

ADO Performance problems

#4704
From: Ron
Date: Fri, 16 Nov 2001 20:40
34 lines
2384 bytes
Hi,

I have a large BCB5 database application that I have just ported over to ADO
from BDE.  For Query's that return small numbers of records it works just
fine, but when a query retrieves over 10,000 records the performance goes
down badly.  I have ported my app to work on Access97, Access2002, and MS
SQL Server with the exact same behaviour, so I think that all the blame lies
in ADO and ADOExpress.

Description of the problem:

I have a simple query on a table with 240,000 records
ie.  "select Field1, Field2, Field3 from SampleTable order by Field4"

The problem I am having is reading through the recordset from the start to
the end (in this century)!

After I read past the 4,000 record, it gets noticably slower (no matter what
ADO parameters I tweak).  This slowdown gets worse every few thousand
records.  With a total of 240,000 records I have never yet had the patience
to reach the end of the recordset. I have tested this on Access97, Access
2002 and MS SQL server with the exact same results (although MS SQL starts
out a little faster).  I have tried adjusting the CacheSize from 1 to
100,000 and set the LockType to ltReadOnly.  I have tried local vs. server
side cursors.  Nothing seems to help.

The VERY annoying part of this situation is that using the BDE with
Access97, I could rip through this test in about 50 seconds...  (Thank god
for progress...NOT! )

If there is anybody out there that can give me tips for optimizing ADO I
would be very grateful to hear from you.

Ron
Technical Details
Message-ID: <3bf579f2$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,9defb43ff18ceee2,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-11-16 13:09:53 PST
From: "Ron" <noemailyouspammers@spamfree.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADO Performance problems
Date: Fri, 16 Nov 2001 13:40:52 -0700
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 199.185.250.210
Message-ID: <3bf579f2$1_1@dnews>
X-Trace: dnews 1005943282 199.185.250.210 (16 Nov 2001 12:41:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews