BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to work with ClientDataset?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Laércio Amici
Guest





PostPosted: Sat Oct 18, 2003 8:41 pm    Post subject: How to work with ClientDataset? Reply with quote



Hello,


I´m making a general form to do a grid to user, that makes general
queries over tables on the database. To do this, I´m using
SqlConnection, SqlQuery, Datasetprovider and ClientDataset.

The problem is that the Clientdataset do a cache of all records into
memory, and that a long time to do this, and use a lot of memory in this
operation (i.e.: a table with over 57000 records).

In a grid, if the user press Ctrl+End, a disaster occurs. It takes over
5 minutes to do the all operation.
Is there another method to do this kind of query/grid without exhaust
all memory resources and take it in a short time?


D7 Entreprise
Oracle 8i

Using ClientDataset.packetrecord = 1000.



Thanks in advance,



Laércio S Amici
[email]lamici (AT) ig (DOT) com.br[/email]


Back to top
Bill Todd
Guest





PostPosted: Sat Oct 18, 2003 8:44 pm    Post subject: Re: How to work with ClientDataset? Reply with quote



Please do not multipost or cross post your messages. It violates
Borland's guidelines for using their newsgroups and wastes everyone's
time. Please post one message in the most appropriate newsgroup.

ClientDataSet is intended for use with small result sets. You should
prompt the user for some selection criteria that you can use in the
WHERE clause of your SQL statement to limit the number of records
returned.


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.