So, I’ve been syncing databases from azure to local SQL. I’ve already synced azure database in 45 minutes, which is not that bad at all, considering I have 200+ tables and countless rows on my database.
Problem is when I’m syncing to local, it’s taking a lot of time. I’ve been practically sitting on this for three hours and still, the sqlServerProv.Apply() functionality hasn’t finished yet.
Any ideas on how long this takes?
Here’s my sample code, or a part of it.
SqlSyncScopeProvisioning sqlServerProv = new SqlSyncScopeProvisioning(sqlServerConn, myScope);
// Apply the scope provisioning.
sqlServerProv.Apply();
Also, it’s a windows service so I can’t really debug other than creating a log file if any error throws, so far, none has triggered any errors yet.
that code is provisioning…that’s not synchronizing… it’s just creating the objects needed by Sync Framework (tables, triggers, stored procedures, etc…)
when provisioning, Sync Fx populates the tracking tables…so if you have a table in your sync scope that has 10M rows, it will insert 10M rows in the tracking tables.
how big is your database?