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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:11:33+00:00 2026-05-20T11:11:33+00:00

In my limited experience in working with ORMs (so far LLBL Gen Pro and

  • 0

In my limited experience in working with ORMs (so far LLBL Gen Pro and Entity Framework 4), I’ve noticed that inherently, queries return data for all columns. I know NHibernate is another popular ORM, and I’m not sure that this applies with it or not, but I would assume it does.

Of course, I know there are workarounds:

  • Create a SQL view and create models and mappings on the view
  • Use a stored procedure and create models and mappings on the result set returned

I know that adhering to certain practices can help mitigate this:

  • Ensuring your row counts are reasonably limited when selecting data
  • Ensuring your tables aren’t excessively wide (large number of columns and/or large data types)

So here are my questions:

  1. Are the above practices sufficient, or should I still consider finding ways to limit the number of columns returned?

  2. Are there other ways to limit returned columns other than the ones I listed above?

  3. How do you typically approach this in your projects?

Thanks in advance.

UPDATE: This sort of stems from the notion that SELECT * is thought of as a bad practice. See this discussion.

  • 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-20T11:11:34+00:00Added an answer on May 20, 2026 at 11:11 am

    One of the reasons to use an ORM of nearly any kind is to delay a lot of those lower-level concerns and focus on the business logic. As long as you keep your joins reasonable and your table widths sane, ORMs are designed to make it easy to get data in and out, and that requires having the entire row available.

    Personally, I consider issues like this premature optimization until encountering a specific case that bogs down because of table width.

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

Sidebar

Related Questions

I just noticed that the return list for results is limited to 1000. I
I am a web-developer working in PHP. I have some limited experience with using
I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined
I normally would create a limited rights user and run the process under that
I am working on a scientific application that has readily separable parts that can
I'm working on a site that's grown both in terms of user-base and functionality
I am working on an iPad app that is fed data via web service
As a programmer with limited experience, and interest, in server management, what are some
I am reasonably new to C++ and have limited experience of templates. At the
A little background I'm working on an .net application that's uses plugins heavily, the

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.