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 392285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:08:39+00:00 2026-05-12T16:08:39+00:00

I can’t seem to find any information on what the actual differences are between

  • 0

I can’t seem to find any information on what the actual differences are between nhibernate 1.2 and 2.0. I have found information regarding what the potential issues are with upgrading, but nothing on what new features are included, or anything about performance differences.

If there are significant differences between the two that could make our development more efficient or easier then I would like to recommend an upgrade to my supervisor. If there isn’t anything in there worth messing with then I can’t see a point in trying to upgrade a currently stable library.

I was going to post links to the information I have already reviewed, but I’m not allowed to as I’m considered a new user.

  • 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-12T16:08:39+00:00Added an answer on May 12, 2026 at 4:08 pm

    I spent 6 months conning my work into an upgrade. Let me simply state some of the benefits we noticed, so that you may show the powers that be:

    • Session start up time was dramatically reduced. This is the amount of time it takes for the SessionFactory to initialize on startup. Time was ~45 sec, and now is ~5 sec. Not so much an issue for production, but definitely a hassle for dev. Keep in mind we have roughly 200 domain objects.
    • We took advantage of lazy loading (and I don’t mean collections, but classes) on upgrade which is the default. That is a change from 1.2 to 2.0. But we did run into issues with objects that weren’t fully loaded that were disconnected from session. Those weren’t easy to find, but easy to solve.
    • We took advantage of batching, which I think was new. That had some big improvements on bulk update operations, which NH isn’t really intended for.
    • With the 2 improvements above, we saw a time reduction for specific nightly operations by 30%.
    • One of our biggest complaints about the old framework, is that it became difficult to find support and current information for 1.2.
    • There is improved Criteria Query support for things like paging and counts. Criteria Queries are nice, because they leverage 1st level cache.
    • Strongly typed collections are quite pleasant to work with. We enjoy occasionally using LINQ, instead of complex SQL, on domain objects and having strongly typed collections is a must for that.
    • We use also use Ayende’s profiler, currently built for 2.0+
    • There are others, but in summary our migration experience wasn’t nearly as scary as we thought. And we have some legacy stuff that would make NH folks shudder. You’ll need to change your config settings, upgrade some deprecated interfaces (I think we had less than 30 in our solution), but the biggest pain is making all properties/methods of your domain objects virtual. I actually wrote a quick program to comb through our domain objects and do this since we had so many.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.