🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Access Alert

#3984
From: Ronnie
Date: Thu, 02 May 2002 20:13
43 lines
2773 bytes
Hi Andre,

Some time ago I shared your experience in working with ADO and C++-Builder.
It took me more than a whole day to find some settings which would give me
any confidence in keeping on using ADO.

For now I'm using the following rules (Say we got a TADODataSet and a
TDBGrid):
- When you have to scroll through a table with lots of records (say
100.000+) use CursorLocation clUseServer and CursorType ctKeyset. The first
execution of the query then is rather quick. The speed of scrolling (from
top till bottom) is a bit lower.
- When you have to work with a small set of records, but you're using joins,
lookup- or calculated fields then clUseServer can get slow. With setting
CusorLocation to clUseClient and CursorType to ctStatic the scrolling and
showing of lookups will be a lot faster. A drawback can be the lower speed
of the first execution of the query (you have to wait some time to see the
first data appear in the grid).
- When you're using several TADODataSets (or TADOTables) at the same time,
let them share the same TADOConnection so the connection has to be
initialised only once and your settings are conveniently centralized.

Maybe this will help you,

HTH
Ronald
--
----------------------------------------------------------------------------
----------------
CodeFit Applications: www.codefit.nl (Dutch spoken)
----------------------------------------------------------------------------
----------------

"Andre Venter" <andre@hacker.co.NOSPAM.za> schreef in bericht
news:3cd0595d_1@dnews...
> Im currently using TADOQuery and TADOTable for using access databases,
> and finding the speed a less than satisfactory... i'm know it can be alot
> faster, I have used access in VB before and that worked very efficiently.
>
> Does anybody have any comments, or suggestions on how to speed this up?
> I can only presume using another method of using access databases?
>
>
Technical Details
Message-ID: <3cd19cdc_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3cd0595d_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,78a19b2c04d2c365
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-05-02 13:11:12 PST
From: "Ronnie" <r.loonstra@home.nl>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3cd0595d_1@dnews>
Subject: Re: Access Alert
Date: Thu, 2 May 2002 22:13:17 +0200
Lines: 45
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: 217.121.245.5
Message-ID: <3cd19cdc_1@dnews>
X-Trace: dnews 1020370140 217.121.245.5 (2 May 2002 13:09:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews