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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:07:39+00:00 2026-06-02T08:07:39+00:00

So I have a design decision to make. I’m building a website, so the

  • 0

So I have a design decision to make. I’m building a website, so the speed would be the most important thing. I have values that depend on other values. I have two options:

1- Retrieve my objects from the database, and then generate the dependent values/objects.

2- Retrieve the objects with the dependent values already stored in the database.

I’m using ASP.NET MVC with Entity Framework.

What considerations should I have in making that choice?

  • 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-06-02T08:07:41+00:00Added an answer on June 2, 2026 at 8:07 am

    Ask yourself this question:

    Are the dependent values based on business rules?

    If so, then don’t store them in the database – not because you can’t or shouldn’t, but because it is good practice – you should only have business rules in the database if that is the best or only place to have it, not just because you can.

    Serializing your objects to the database will usually be slower than creating the objects in normal compiled code. Database access is normally pretty quick, it is the act of serialization that is slow. However if you have a complicated object creation process that is time consuming then serialization could end up quicker, especially if you use a custom serialization method.

    Sooooo…. if your ‘objects’ are relatively normal data objects with some calculated/derived values then I would suggest that you store the values of the ‘objects’ in the database, read those values from the database and map them to data objects created in the compiled code*, then calculate your dependent values.

    *Note that this is standard data retrieval – some people use an ORM, some manually map the values to objects.

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

Sidebar

Related Questions

I'm about to make a design decision that could potentially have visible performance implications.
I have to make a design decision with regards to fields in the database.
I am trying to make decision how to design my app. I have about
I have a design decision to make regarding documents uploaded to my web site:
I have the following design decision to make - running into it for the
I have tough time making this design decision. I could go with traditional new
More of a design/conceptual question. At work the decision was made to have our
I have to design a data structure that is to be used in a
I have this design which I cannot seem to get right, I would like
I've got a design decision to make and am looking for some best practice

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.