Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2004, 02:23 AM
oasis oasis is offline
Senior Member
 
Join Date: Feb 2002
Posts: 410
Default from Access DB through ADO to TStringGrid(too slow)

from Access DB through ADO to TStringGrid(too slow)... How can I make better speed of my app? searching record... adding to stringgrid and so on... Maybe I should use other custom grid component...

oasis@eurosoft.lv
http://oasis.yo.lv
beginner!
Reply With Quote
  #2  
Old 03-30-2004, 05:19 AM
paullus paullus is offline
Senior Member
 
Join Date: Jun 2002
Posts: 176
Default RE: from Access DB through ADO to TStringGrid(too slow)

In your Access DB are you using "linked tables" (unfortunatelly I don't know how to write in english, but maybe you understand)?

Other question... your Access DB file is through a network, or is a local file?

Both conditions slow your application speed.

<cr> if it helped please accept</cr>
Paullus Martins de Sousa Nava Castro
Brazil (Brasil)
Brasília - DF
Reply With Quote
  #3  
Old 03-30-2004, 05:23 AM
oasis oasis is offline
Senior Member
 
Join Date: Feb 2002
Posts: 410
Default RE: from Access DB through ADO to TStringGrid(too slow)

file is no my local drive...

I am using TADODataSet component and using with connection string microsoft Jet engine 4.0

oasis@eurosoft.lv
http://oasis.yo.lv
beginner!
Reply With Quote
  #4  
Old 03-30-2004, 05:24 AM
oasis oasis is offline
Senior Member
 
Join Date: Feb 2002
Posts: 410
Default RE: from Access DB through ADO to TStringGrid(too slow)

my access DB is indexed...

oasis@eurosoft.lv
http://oasis.yo.lv
beginner!
Reply With Quote
  #5  
Old 03-30-2004, 05:25 AM
oasis oasis is offline
Senior Member
 
Join Date: Feb 2002
Posts: 410
Default RE: from Access DB through ADO to TStringGrid(too slow)

my app go through 1000 records in 300 ms
is it good?

oasis@eurosoft.lv
http://oasis.yo.lv
beginner!
Reply With Quote
  #6  
Old 03-30-2004, 05:46 AM
paullus paullus is offline
Senior Member
 
Join Date: Jun 2002
Posts: 176
Default RE: from Access DB through ADO to TStringGrid(too slow)

In my opinion is fine, though I'm not an DBA.
hehehe...

In time: indexed is different from what I wanted to ask you. If you want speed you MUST index your search fields, the price is the size of the database getting bigger :-)

I asked you if your DB is linked to another Access DB file searching on tables from it. (Maybe you understand now).

Other point: try using ADOQuery. In that you can especify your search conditions (SQL statement) making your program faster.

<cr> if it helped please accept</cr>
Paullus Martins de Sousa Nava Castro
Brazil (Brasil)
Brasília - DF
Reply With Quote
  #7  
Old 03-30-2004, 05:49 AM
oasis oasis is offline
Senior Member
 
Join Date: Feb 2002
Posts: 410
Default RE: from Access DB through ADO to TStringGrid(too slow)

No I am using just one access DB and it is 5,5 mb big...

You say that I need to use ADO querry?

oasis@eurosoft.lv
http://oasis.yo.lv
beginner!
Reply With Quote
  #8  
Old 03-30-2004, 06:46 AM
paullus paullus is offline
Senior Member
 
Join Date: Jun 2002
Posts: 176
Default RE: from Access DB through ADO to TStringGrid(too slow)

No... i don't NEED o use ADOQuery, it's recommended. Actually I never worked with TADODataSet. After talked to you I looked at it. It seems to have the same funcionality of ADOQuery. So it's fine.

As I said... I think the time response is allright.

<cr> if it helped please accept</cr>
Paullus Martins de Sousa Nava Castro
Brazil (Brasil)
Brasília - DF
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.