 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
kenshiro2000 Guest
|
Posted: Wed Dec 03, 2003 6:57 pm Post subject: MySQL and DataSource: caching? |
|
|
I have a DBGrid linked to a TDataSource, and this TDataSource is linked to a TMySqlTable (a TTable for MySQL controls). I think that this TDataSource load all the records in the Table.....but this is wrong because if there are many records in the table the time is too long!!!
Anyone know how can i caching this loading to minimize time?
thanks
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Wed Dec 03, 2003 8:25 pm Post subject: Re: MySQL and DataSource: caching? |
|
|
Hello,
I don't know the TMySqlTable component, but the query components I know have a property (FetchAll) that can be disabled and only a certain number of rows will be retrieved, the others will be fetched when needed. Check if is there any property like that. Probably there is a TMySqlQuery component which I bet has a better behavior then the TMySqlTable .
Who sells the TMySqlTable component ? Do you have any documentation about it ?
HTH
Jayme.
"kenshiro2000" <kenshiro2000 (AT) libero (DOT) it> wrote
| Quote: |
I have a DBGrid linked to a TDataSource, and this TDataSource is linked to a TMySqlTable (a TTable for MySQL controls). I think that this TDataSource load all the records in the Table.....but this is wrong because if there are many records in the table the time is too long!!!
Anyone know how can i caching this loading to minimize time?
thanks
|
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Wed Dec 03, 2003 8:52 pm Post subject: Re: MySQL and DataSource: caching? |
|
|
Hello,
Check this address http://www.microolap.com/help/mysqldac/040000.TMySQLTable.htm, it contains a help on the TMySQLTable component. Have a look on the TMySQLQuery component too there is a explicit information on the number of records retrieved.
HTH
Jayme.
"kenshiro2000" <kenshiro2000 (AT) libero (DOT) it> wrote
| Quote: |
I have a DBGrid linked to a TDataSource, and this TDataSource is linked to a TMySqlTable (a TTable for MySQL controls). I think that this TDataSource load all the records in the Table.....but this is wrong because if there are many records in the table the time is too long!!!
Anyone know how can i caching this loading to minimize time?
thanks
|
|
|
| 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
|
|