× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> From: CWilt@xxxxxxxxxxxx
> 
> I'd like to know where you got that information, because as I
understand
> it
> that is simply not the case.  Both queries would be run exactly the
same
> way.

Charles, as far as I can tell, you are exactly correct.  After I fixed a
typo in the test suite, my benchmarks show FETCH via WHERE and FETCH via
JOIN performing exactly the same (within 0.1% of each other).

My WHERE vs. JOIN test:

c/EXEC SQL select a.key1, b.key1, c.key1, c.data1    
c+           into :akey1, :bkey1, :ckey1, :cdata1    
c+           from IBPP1 as a, IBPP2 as b, IBPT1 as c 
c+           where a.key1 = :keya                    
c+             and a.fk1 = b.key1 and a.fk2 = c.key1 
c/END-EXEC                                           

runs nearly identically to:

c/EXEC SQL select a.key1, b.key1, c.key1, c.data1  
c+           into :akey1, :bkey1, :ckey1, :cdata1  
c+           from IBPP1 as a                       
c+           left join IBPP2 as b on a.fk1 = b.key1
c+           left join IBPT1 as c on a.fk2 = c.key1
c+           where a.key1 = :keya                  


Joe
http://forums.plutabrothers.com/IAAI


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.