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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:53:55+00:00 2026-06-08T23:53:55+00:00

If I have a profile form with 20 fields a user can update on

  • 0

If I have a profile form with 20 fields a user can update on a page. It seems like it would be a waste to run an update statement that would update every single column if the user only changed two fields.

I was wondering what would be the best way to handle this for the best performance.

Since I only have 20 fields its not really an issue but I am just wondering for future development of where maybe it could be more.

What does everyone else do, do you just update every column for that row?

  • 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-08T23:53:56+00:00Added an answer on June 8, 2026 at 11:53 pm

    Tools like Entity Framework (or other ORM tools) will handle this for you, for “free”.

    They track what has changed in your objects, and they will issue a tailor-made UPDATE statement that will only update those columns that have actually changed.

    You need not worry about any of those details anymore. All taken care of for you. Try it!

    Resources:

    • Entity Framework in the MSDN Data Developer Center – tons of docs, whitepapers, code samples, videos and more

    • Absolute Beginner’s Guide to Entity Framework

    • MSDN Library – Entity Framework Overview (.NET 4)

    • ASP.NET site – Entity Framework with lots of tutorials on how to use EF with ASP.NET (Webforms and MVC) applications

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

Sidebar

Related Questions

I have a page which displays a form that a logged-in user can use
I have a form that allows a user to update their profile information, but
Let's say you have a profile page that can only be accessed by the
I have a Profile form that inherits from sfGuardRegisterForm I have these fields: $this->useFields(
I have a form for a 'user profile' with the following fields: <form> First
I've user profile update page and have some forms to update, here they are
I have a profile weblog that contains all our users details (fields seperate from
In my CakePHP 1.2.5 app, I have a Profile model that belongsTo a User
I have two forms in one view updating the User Profile. One Form is
I have a custom form... I'd like to auto save the author (authenticated user)

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.