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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:35:11+00:00 2026-05-11T06:35:11+00:00

I have a feature where we need to merge user records. The user chooses

  • 0

I have a feature where we need to merge user records. The user chooses a user to keep and and a user to discard.

We have 59 relations to user records in our database so for each one I need to do:

UPDATE (Table) set UserNo=(userToKeep) WHERE UserNo=(userToDiscard)

and then DELETE the userToDiscard and their user prefs (118).

Should I be worried about the transaction size? This is MS-SQL 2005.

Is there anything I could do?

Thanks

  • 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. 2026-05-11T06:35:12+00:00Added an answer on May 11, 2026 at 6:35 am

    Have you tested how long the process actually takes? How often are users merged?

    If you have indexes on the user ID in each of this table (and I would think that would be the natural thing to do anyway) then even with 59 tables it shouldn’t take too long to perform those updates and deletes. If you only actually merge users a couple times a week then a little blip like that shouldn’t be an issue. At worst, someone has to wait an extra couple seconds to do something once or twice a week.

    Another option would be to save these user merge requests in a table and do the actual work in a nightly process (or whenever ‘off-hours’ is for your application). You would need to make it clear to the users of your application though that merges do not take effect immediately. You would also need to account for a lot of possible contingencies: what if the same user is set to merge with two different users that night, etc.

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

Sidebar

Related Questions

CVS and Subversion both have a handy merge feature so that when you update
I have a feature matrix implemented with Silverlight's Grid where users need to select
I have created a custom list as a feature in sharepoint. i need to
i have this youtube url http://www.youtube.com/watch?v=9N51Etoikfw&feature=youtube_gdata i need to remove the feature parameter and
Suppose I have this feature branch foo. Now I want to merge it back
I've been strugling with those feature ( attach/merge feature ). My need is simple,
We have recently moved to using feature branches for each story we work on.
I have a feature where we have to compare multiple series. I have implemented
I have a feature called foo, plugin called foo, and a single fragment foo.win32.x86.
I have a feature in my web app like I have to send mails

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.