We are planning to migrate our SQL on prem database to azure and this database has lot of tables and out of them few are very highly transaction table (contains millions of records), we want to minimize the down time of the application and decided to use the transaction replication using snapshot for the replication of data and then take some down time and do a cut-over to azure database from our application
Below are the issues which we have seen so far in pre prod
- Table locks during initial time and lot of requests from the application were failing due to this locks. How can we avoid this?
- 2 articles (millions of rows) replication failed one which was almost completed (90%) and other due to some data issue, we have created 3 separate publications one for rest of small tables and other 2 for each big tables.
I know that we can reinitialize the publication and do it from start but that will again delay the cut over time and also table locks.
So how can we handle this case 1 for where we most of the data was replicated and we do not want to start from scratch
I hope many of you have experience this issues and has some best practices to share.