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 

Re: improve table.open speed (paradox)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
Markku Nevalainen
Guest





PostPosted: Sat Sep 11, 2004 12:22 pm    Post subject: Re: improve table.open speed (paradox) Reply with quote



Santy Concepción wrote:
Quote:

If table is too big, this code takes some seconds to run.
I have tried to Filter and then Open it:
Table1.Filter := filter;
Table1.Filtered := True;
Table1.Open;

You did not tell what kind of DB operation you are actually trying to
perform.

Record count of 38.000 is peanuts, if you have any indexed field there,
and you can seek the data by using that index. Paradox always requires
the Primary Index, and then you can add Secondary indexes as much as
you need.

With indexed searches, that is using FindKey for instance, you should
always get a couple of seconds response time with local databases.

Quote:
I have tried to SetRange, but SetRange needs the table to be opened.

If you use SetRange with indexed field, you should get the table
open with that selected dataset in some seconds. Filter is not as effective,
if you do not know what you are doing.

If there are a bunch of Master/Detail connections with this table that you
are opening, they can also cause some slowness when they get open.

Markku Nevalainen

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases 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.