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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:08:48+00:00 2026-05-17T01:08:48+00:00

I have created domain model and define entities, value objects, Services and so on.

  • 0

I have created domain model and define entities, value objects, Services and so on. Now, my query is that i have an entity called “Company” which has around 20+ attributes and i want to bind a dropdownlist control in one of my page that require only two attributes i.e. company.Name, company.Id. Why should i use such a heavy entity having 20+ attributes to bind the dropdownlist.

Is there any way to handle this considering the performance in mind as well.

Thanks in advance.

  • 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-17T01:08:49+00:00Added an answer on May 17, 2026 at 1:08 am

    Question is not that much DDD related. It’s about performance.

    As I do – I do not care if there is 1 or 20 attributes as long as those attributes does not come from separate tables. There isn’t high difference if select picks up 1 or 20 fields, but there is noticeable difference if select starts to join other tables and there is highly noticeable difference when there’s select n+1.

    So – when I retrieve list of Company through my ORM in order to create selectlist, it is smart enough to run sql select only over Company table and lazy load other things if they are necessary (which aren’t in this particular case).

    Luckily – I’m not developing systems that demands ultra high performance so I don’t care if it takes 1 or 20 fields. If I did – I doubt that I would use ORM anyway.


    For some other persistence mechanisms – it might not be a problem at all. E.g. – if You are using document database, You can store/retrieve whole aggregate into one document cause it’s schema less. Performance penalty goes down drastically.

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

Sidebar

Related Questions

I have created an app to standardize user creation for our AD domain. Now
I have a MVC application with a Domain Model well defined, with entities, repositories
In my domain I have entities that don't have setters on the properties (except
I'm using ValueInjecter to flatten/unflatten view models into domain objects created by Entity Framework
I have a domain model that looks like this: case class Account(id: Int, name:
I have created a model called LandingPage, and the current route is something like:
I have created a repository that is returning data from my database using Entity
We're using interfaces to represent entity classes in our domain model. We have concrete
I have created a sub-domain forum.new4u.com for the site new4u.com . Actually the forum
Actually I have a domain - domainone.com I have created a subdomain cname of

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.