Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 627205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:30:11+00:00 2026-05-13T19:30:11+00:00

On outer join fetching , the Nhibernate documentation says: If your database supports ANSI

  • 0

On outer join fetching, the Nhibernate documentation says:

If your database supports ANSI or
Oracle style outer joins, outer join
fetching might increase performance by
limiting the number of round trips to
and from the database (at the cost of
possibly more work performed by the
database itself). Outer join fetching
allows a graph of objects connected by
many-to-one, one-to-many or one-to-one
associations to be retrieved in a
single SQL SELECT.

I’m trying to decide if I should use outer join fetching in my current project (which uses NHibernate). To that end I’m going to be testing load times with and without outer join fetching. But I would like to know if it’s a good or bad strategy on the whole when using Sql Server 2008.

Is it generally better to use outer join fetching than not with Sql Server 2008?

How does one determine whether to use it or not? (other than through performance testing and query profiling)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:30:12+00:00Added an answer on May 13, 2026 at 7:30 pm

    Weird question.
    Use outer join fetching if necessary; certain queries will require outer join fetching on some entities. Other queries won’t. So, if you do not need it, don’t fetch eagerly using outer joins.
    You can specify the type of fetching for each association when you use the ICriteria API.

    It’s all a matter of optimization, which can be done afterwards. I mean: suppose you have an object graph, where certain parts are retrieved via lazy loading, and after testing, if it seems that lazy loading affects performance in a negative way for that specific object graph, check if you could gain something by using eager loading (via outer join fetching f.i.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am executing the below query with Oracle ANSI left outer join syntax,It's returning
How can I force NHibernate to do a RIGHT outer join or an INNER
I have a oracle sql where I do an outer join between the accounts
Outer joins don't seem to work whether I use a left outer join or
I have a right outer join, that almost does what I want... SELECT users_usr.firstname_usr,
Is an outer join only used for analysis by the developer? I'm having trouble
I'm trying to do an Outer Join in Symfony. Here's the bit of code
What is the difference between LEFT JOIN and LEFT OUTER JOIN ?
Also, how do LEFT OUTER JOIN , RIGHT OUTER JOIN , and FULL OUTER
How can I create a query for a full outer join across a M2M

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.