🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Asynchronous queries

#1369
From: Star
Date: Tue, 27 Jul 2004 22:59
18 lines
1350 bytes
Hi,

I have very big table (about 50 million records). I usually make some
queries on this table, and it can take
several minutes to run. Is there anyway to start getting records as soon as
there is one available?

I thought I could use something like this:

ADODataSet1->CommandText = "SELECT Code From Subs_Subjects";

ADODataSet1->ExecuteOptions = ADODataSet1->ExecuteOptions << eoAsyncFetch;
ADODataSet1->Open();

Is that the way to do it? Should I get an event for every new record
returned? In that case, what event should I look at?

Thanks
Technical Details
Message-ID: <4106de81$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,e0caeb4fee49b407,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Star" <--->
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Asynchronous queries
Date: Tue, 27 Jul 2004 18:59:06 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 209.227.134.122
Message-ID: <4106de81$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090969217 209.227.134.122 (27 Jul 2004 16:00:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail