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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:23:30+00:00 2026-05-26T15:23:30+00:00

I recently had to troubleshoot a performance problem with a slow grid load. Upon

  • 0

I recently had to troubleshoot a performance problem with a slow grid load. Upon investigation, it looked like someone had used a List<Product> to populate the grid. The problem was that the Product object had a lot of properties, many of them not.lazyloads(), most of them not even needed for the grid.

So to resolve the issue I created a new Object called ProductLite, that had only lazy loads, most of the key info on joins and the performance was now great. Rather than doing 10,000 db hits, it went to 1.

My question to the SO community, how do you model your objects? I was thinking that all objects should have a “details” and “info” versions, since sometimes and intensive object load is needed. Ie. ProductDetails would contain all the info and not be used in lists, whereas ProductInfo would carry simply the high level info for use in lists, quick lookups etc.

Is there a standard that has been adopted as a best-practice for modeling objects?

  • 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-26T15:23:31+00:00Added an answer on May 26, 2026 at 3:23 pm

    The problem here is that you are confusing Domain Model objects with DTOs/Presentation Model objects.

    I’m usually reluctant to consider any guideline a “best practice”, but here are a few general tips:

    • Domain objects should be one per table (not considering inheritance)
    • Lazy loading should not be disabled in the mappings. Good article about this.
    • Use reasonable batch-size settings for entities and collections (rule of thumb: use your page size)
    • Use caching, at least for mostly-read-only objects
    • Use projections (anonymous, typed, object arrays, whatever works) if you really need to load just a few fields of many objects, when you don’t need to edit an object
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently had a code review . One of my classes was used so
I recently had a problem during the deployment of a windows service. Four computers
I recently had a problem in my app where some of the subviews I
I recently had this problem on a test: given a set of points m
I recently had a problem with two threads sticking in deadlock because they weren't
I recently had a little problem using a jquery plugin with coffeescript (within the
I recently had an argument with someone regarding the ability of a website to
I recently had this problem about scrolling and focus changing. I solved it by
We recently had the problem that important timed emails could not be sent by
I recently had a problem with three separate servers running the same code all

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.