Mass update to Table concurrently

  • 800 users use table 'Purchase' for select, insert, update. At the same time I want to update the purhcase table which affects 200,000 rows. (update d set d.venor = abcd from purchase d (nolock) where d.id <= 500000). This update statment blocks the users, they say they could not use the application or application is slow etc when update runs.

    How to update this 200,000 rows or more without giving any blocking to the users. Pls help.

  • you should do the update in smaller batches and if possible during the quiet time on your database to minimise the affect on other users

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply