Re: Efficiency of Nested queries
From: Ted Allen (anonymous_at_discussions.microsoft.com)
Date: 07/16/04
- Next message: Tara: "Useless queries"
- Previous message: Susy: "Percentages"
- In reply to: Allen Browne: "Re: Efficiency of Nested queries"
- Next in thread: scimitar: "Re: Efficiency of Nested queries"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 09:58:01 -0700
Allen, Thank you for that link. I found that article
very interesting and informative.
-Ted Allen
>-----Original Message-----
>The JOIN will probably be the most efficient way to
achieve this.
>
>Access uses a remarkably intelligent set of algorithms
to optimise your
>queries, but it does not really expose these to you.
There are some
>undocumented ways to see what's going on.
See "Micorosft's Unsupported JET
>Optimization Tools" at:
>http://msdn.microsoft.com/library/en-
us/dnacbk02/html/odc_4009c15.asp?
frame=true#odc_4009c15_topic4
>
>--
>Allen Browne - Microsoft MVP. Perth, Western Australia.
>Tips for Access users - http://allenbrowne.com/tips.html
>Reply to group, rather than allenbrowne at mvps dot org.
>
>"scimitar" <scimitar@discussions.microsoft.com> wrote in
message
>news:254BFB9B-C65C-43E4-8D2C-
B90D7BF34E53@microsoft.com...
>> I'm struggling to make a complex query as fast as
possible.
>> If I have nested queries does the nested query run in
full before the
>query that reads it runs or does some optimization take
place?. For example:
>>
>> Lets say I have a table of 50,000 rows of which 100
records are 'open'.
>> I need to display the open rows but only where the
user = 'XYZ'. To
>determine the user requires a join with another table.
>>
>> Is it more efficient to have 2 queries where the first
query selects just
>the open records and the second query does the join
(thus the join only
>applying to 100 records), or is it more efficient to do
it with one query.
>
>
>.
>
- Next message: Tara: "Useless queries"
- Previous message: Susy: "Percentages"
- In reply to: Allen Browne: "Re: Efficiency of Nested queries"
- Next in thread: scimitar: "Re: Efficiency of Nested queries"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|