Re: efficiency

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I suppose it depends on how you define "efficient". In one sense, it would be more efficient to do all the calculations in one query, so as to avoid writing multiple queries, and possibly the work entailed in stitching the correlated results together again later.

On the other hand, I have no idea. Is it more efficient from a processor POV to run multiple calculation queries versus one query with a bunch of calculations?

You could test this using VBA to time each method over several trials. But, I suspect (with absolutely no reason to other than intuition) if the number of records is relatively small (say, 1000s, not 1000000s) the difference will be negligible on modern equipment.



The Dummy in Access for Dummies wrote:
Is it better to have all of the calculations in one calculated query or should I have create a calculated query for each calculation? Query table; I mean like having the sum of a series of fields and the standard deviation of the same series of fields in the same query design? (keep in mind that this is just a simple example, I actually have quite a number of calculations)

"mscertified" wrote:

what do you mean by 'query table'?

"The Dummy in Access for Dummies" wrote:

In regards to efficiency, is it better to have one query table with all of the calculations in it, or to separate each calculation in a different query table?


--
Smartin
Click Submit only once or you may be charged for this call multiple times!
.



Relevant Pages

  • Re: How to display calculated fields instead of storage
    ... I did everything but the query still excludes records. ... Allen Browne - Microsoft MVP. ... Tips for Access users - http://allenbrowne.com/tips.html ... That's 5796^2 calculations. ...
    (microsoft.public.access.forms)
  • Re: How to display calculated fields instead of storage
    ... There will be a reason why it's excluding records. ... Properties sheet when examining the properties of the query.) ... and I mis-stated the long delay. ... >>>>> the previous day's data calculations, so how does one write code ...
    (microsoft.public.access.forms)
  • Re: Access 2007 Text Box Text Format property in a Report
    ... Small table, small query, simply calculated fields, simple report, and simple ... I was able to select Rich Text with every combination of calculated ... When I started expanding and included more calculations ...
    (microsoft.public.access.reports)
  • Re: Access 2007 Text Box Text Format property in a Report
    ... my small test as in my bigger real database. ... using a smaller query. ... I was able to select Rich Text with every combination of calculated ... fancy calculations as I expanded my query. ...
    (microsoft.public.access.reports)
  • Re: Access 2007 Text Box Text Format property in a Report
    ... my small test as in my bigger real database. ... using a smaller query. ... I was able to select Rich Text with every combination of> calculated ... > fancy calculations as I expanded my query. ...
    (microsoft.public.access.reports)