 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Laércio Amici Guest
|
Posted: Sat Oct 18, 2003 8:41 pm Post subject: How to work with ClientDataset? |
|
|
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
|
Posted: Sat Oct 18, 2003 8:44 pm Post subject: Re: How to work with ClientDataset? |
|
|
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 |
|
 |
|
|
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
|
|