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 

MySQL and DataSource: caching?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
kenshiro2000
Guest





PostPosted: Wed Dec 03, 2003 6:57 pm    Post subject: MySQL and DataSource: caching? Reply with 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





PostPosted: Wed Dec 03, 2003 8:25 pm    Post subject: Re: MySQL and DataSource: caching? Reply with quote



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





PostPosted: Wed Dec 03, 2003 8:52 pm    Post subject: Re: MySQL and DataSource: caching? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) 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.