🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Asynchronous queries

#1371
From: Viatcheslav V. Vassiliev
Date: Wed, 28 Jul 2004 05:42
34 lines
2020 bytes
If you do not display your query in UI - use server-side cursor, it will not
fetch all rows into memory.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Star" <---> �������/�������� � �������� ���������:
news:4106de81$1@newsgroups.borland.com...
> 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: <41073cac@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4106de81$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,e0caeb4fee49b407
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4106de81$1@newsgroups.borland.com>
Subject: Re: Asynchronous queries
Date: Wed, 28 Jul 2004 09:42:06 +0400
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.234.218.42
Message-ID: <41073cac@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090993324 213.234.218.42 (27 Jul 2004 22:42:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail