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

  • Home
  • SEARCH
  • 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 6222405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:18:29+00:00 2026-05-24T08:18:29+00:00

I have a web application with: 1 Terabyte DB 200+ tables At least 50

  • 0

I have a web application with:

  • 1 Terabyte DB
  • 200+ tables
  • At least 50 tables with 1+ million records each
  • 10+ developers
  • 1000s of concurrent users

This project is currently using Ad-Hoc Sql, which is generated by custom ORM solution.
Instead of supporting custom ORM (which is missing a lot of advanced features), I am thinking to switch to Entity Framework.

I used EF 4.1 (Code-First) on a smaller project and it worked pretty well, but is it scalable for a much larger project above?

  • 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-24T08:18:30+00:00Added an answer on May 24, 2026 at 8:18 am

    I (highly) agree with marvelTracker (and Ayende’s) thoughts.

    Here is some further information though:

    Key Strategy

    There is a well-known cost when using GUIDs as Primary Keys. It was described by Jimmy Nilsson and it has been publicly available at http://www.informit.com/articles/article.aspx?p=25862. NHibernate supports the GUIDCOMB primary key strategy. However, to achieve that in EntityFramework is a little tricky and requires additional steps.

    Enums

    EntityFramework doesn’t support enums natively. Until June CTP which adds support for Enums http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx the only way to map enumerations was using workarounds Please look at: How to work with Enums in Entity Framework?

    Queries:

    NHibernate offers many ways for querying data:

    • LINQ (using the re-motion’s re-linq provider, https://www.re-motion.org/web/)
    • Named Queries encapsulated in query objects
    • ICriteria/QueryOver for queries where the criteria are not known in advance
    • Using QueryOver projections and aggregates (In cases, we only need specific properties of an entity. In other cases, we may need the results of an aggregate function, such as average or count):
    • PagedQueries: In an effort to avoid overwhelming the user, and increase application responsiveness, large result sets are commonly broken into smaller pages of results.
    • MultiQueries that combine several ICriteria and QueryOver queries into a single database roundtrip
    • Detached Queries which are query objects in parts of the application without access to the NHibernate session. These objects are then executed elsewhere with a session. This is good because we can avoid complex repositories with many methods.

    ISession’s QueryOver:

    // Query that depends on a session:
    premises = session.QueryOver<Premise>().List();
    

    Detached QueryOver:

    // Full reusable query!
    var query = QueryOver.Of<Premise>();
    
    // Then later, in some other part of ther application:
    premises = query.GetExecutableQueryOver(session).List(); // Could pass IStateleSession too.
    

    Open source

    NHibernate has a lot of contribution projects available at http://sourceforge.net/projects/nhcontrib/

    This project provides a number of very useful extensions to NHibernate (among other):

    • Cache Providers (for 2nd-level cache)
    • Dependency Injection for entities with no default constructor
    • Full-Text Search (Lucene.NET integration)
    • Spatial Support (NetTopologySuite integration)

    Support

    EntityFramework comes with Microsoft support.
    NHibernate has an active community:

    • https://stackoverflow.com/questions/tagged/nhibernate
    • http://forum.hibernate.org/
    • http://groups.google.com/group/fluent-nhibernate

    Also, have a look at:
    http://www.infoq.com/news/2010/01/Comparing-NHibernate-EF-4

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

Sidebar

Related Questions

I have web application and I do not really care about IE6 users. However
I have a web application that should behave differently for internal users than external
I have this web application that has grown to an unmanageable mess. I want
I have web application in that i am using tabbed interface control in this
I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can
I have a web application that have standard form authentication declared, like this: <login-config>
I have web application written in java using Eclipse. It has just one servlet
I have web application which we deployed in a production . We have separate
I have a web application written in C# that consumes several internal web services.
I have a web application developed with ASP.net and C# that is running on

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.