🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: techniques for minimizing database traffic

#2871
From: Viatcheslav V. Vassiliev
Date: Thu, 13 Mar 2003 11:28
47 lines
2743 bytes
Make master/details relashionship manually - load master dataset, handle
AfterScroll event and in this event close and open details dataset (query
for details dataset is usually the same as for master with additional WHERE
...).

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"Bonny Rais" <bonnyr@optushome.com.au> �������/�������� � ��������
���������: news:3e704aed@newsgroups.borland.com...
> All,
>
> I've posted a question regarding the time it takes to start up an
> application
> with an active dataset of medium size (70K records). It was suggested that
> this happens because the cursor location is on the client which forces the
> loading of the complete dataset in order to facilitate sorting/filtering.
> However, I've changed the cursor location to be server side and now
> I'm getting exceptions with a dataset which is related to the above
dataset
> and which is used to show the details in a master/detail form. I cannot
set
> the cursor type to dynamic/static/keyset (at least this is what the ODBC
> driver states) and
> it is required to be such for bookmarks to work...
>
> what gives?
>
> I am new to C++ builder so I'm not sure what the best way to achive this
is,
> but I'm sure many people have done this before: the scenario is a
> master/detail
> combination with ~100K master records and ~500k detail records. What's
> the best way to have a responsive UI without loading the complete master
> table
> into memory?
>
> Cheers,
>
> Bonny
>
>
>
Technical Details
Message-ID: <3e706d6a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e704aed@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,e3115bee4ba3f50b
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-03-13 03:39:28 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e704aed@newsgroups.borland.com>
Subject: Re: techniques for minimizing database traffic
Date: Thu, 13 Mar 2003 14:28:43 +0300
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.247.201.57
Message-ID: <3e706d6a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047555434 213.247.201.57 (13 Mar 2003 03:37:14 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail