Solved

Tables,queries :  Memmory? Speed?

Posted on 1998-01-12
7
255 Views
Last Modified: 2010-04-04
Hi all,

Have to make access to a lot of tables. On a lot of tables I have to select the same ranges. ...

What should I do?
Join the tables to one query?
Isn't this slowing down the program?
Or is the combined tables query as fast as the different tables ranged? What about the memmory?

How much memmory do you need when you connect a TTable to a database table. And what if you add two TTables to one database table. What about the speed?

What if you don't select all fields in the fieldeditor? Does this reduce the needed memmory and icreases speed. Or does this do nothing?

Help! Need some advice.

Zif.
0
Comment
Question by:ZifNab
  • 4
  • 2
7 Comments
 
LVL 8

Author Comment

by:ZifNab
ID: 1356154
Edited text of question
0
 
LVL 2

Expert Comment

by:mvz121697
ID: 1356155
Which database ?
0
 
LVL 8

Author Comment

by:ZifNab
ID: 1356156
Access95 v7.0
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:JimBob091197
ID: 1356157
Each table or query has one logical connection to an Access database.  Thus many tables will have many connections, but a query will only have one logical connection from Delphi to Access, even if the query joins many Access tables.  (I.e. a query only has one handle from Delphi.)  This should make the query quicker than using many tables (if the query doesn't use an "Order By") and should use less memory too.

Exactly how much memory is used for a table or query I cannot say...

JB
0
 
LVL 8

Author Comment

by:ZifNab
ID: 1356158
Hi JimBob,

That's the answer I wanted to hear, thanks!
What about the total fields? (TFieldEditor)

You can post your comment as an answer.

Regards,
Zif.
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 20 total points
ID: 1356159
Each table or query has one logical connection to an Access database. Thus many tables will have many connections, but a query will only have one logical connection from Delphi to Access, even if the query joins many Access tables. (I.e. a query only has one handle from Delphi.) This should make the query quicker than using many tables (if the query doesn't use an "Order By") and should use less memory too.

Exactly how much memory is used for a table or query I cannot say...

Regarding the total fields (using field editor).  This would use more memory, but access to each field may be slightly faster.  The real advantage would be from a coding & development point, but the user would not see any noticable speed increase.

JB
0
 
LVL 8

Author Comment

by:ZifNab
ID: 1356160
Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to center only a line in richedit? 4 69
Help on project with Soap 10 62
Delphi 2 77
Using MMsystem To change audio input 1 17
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question