Migration of Data

SVA 121 Reputation points
2025-06-26T13:22:39.49+00:00

Hello,

What is is the best and most efficient (performance wise) method to migrate of full data from large database to small multiple database (microservices) during cutover.

Thanks

SQL Server Database Engine
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 128.6K Reputation points MVP Volunteer Moderator
    2025-06-30T08:06:31.4833333+00:00

    Since you are not keen on sharing information, I will only answer by listing some points to consider:

    • To reduce time, run things in parallel. This means that you need to identify operations that run independently without blocking each other and put these in separate scripts.
    • Run all copying with non-clustered indexes and foreign keys disabled. Re-enable them in the final step.
    • For larger amounts of data, run things in batches. It's important that your batching conditions follow the clustered index.

    It goes without saying that you need to rehearse and test the scripts you develop.

    I am assuming here that the new databases are on the same server as the source database.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.