If you are using a cds locally (no server) then presumably you are doing a
loadfromfile so you will always have all the records in memory. If not,
then you should do your search on the server via the provider.datarequest.
>From: Carl Reynolds <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Subject: [DUG]: Efficient searching in TClientDataSet
>Date: Wed, 8 Sep 1999 13:02:32 +1200
>
>When I do a Locate on a TClientDataSet, it immediately loads all
>remaining records into its buffer, ignoring PacketRecords. The same
>thing happens when using FindKey or GotoKey. If I don't want to have
>all the records loaded automatically (because I have a very large result
>set), is there a more efficient way to locate a record than to step
>through one record at a time, checking each for a match?
>
>Cheers,
>
>Carl Reynolds Ph: +64-9-4154790
>CJN Technologies Ltd. Fax: +64-9-4154791
>[EMAIL PROTECTED] DDI: +64-9-4154795
>PO Box 302-278, North Harbour, Auckland, New Zealand
>12 Piermark Drive, North Harbour Estate, Auckland, NZ
>Visit our website at http://www.cjntech.co.nz/
><< attach3 >>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz