• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Which is faster - Outer join or Subquery

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to show report whose data is based on many tables.
I am able to display records using 2 ways, one is outer joins on 2 tables with 1 subquery and
other is outer joins on 1 tables with 2 subqueries.
Both gives data(around 13000) in around 5 seconds.
Which one will be faster?

Does nvl or nvl2 slow down query, is there any other option?

Thanks,
Deepa
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you can't completely judge which will be faster, but you can get explain plans and see the scores of those, and I would suggest that the one with the lower score would be the fastest, but there are no guarantees.

Testing is the best way to see.

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic