A while back I posted about SQL Source Control taking a very long time for remote users to link a database.
Since then, we've removed some large static tables, upgraded to the latest version of SQL Source Control, upgraded our Subversion server to 1.7, and enabled HTTP 1.1 as recommended in the post. However, we're still seeing the same behavior which makes SQL Source Control unreasonably slow for offsite users.
I've done some investigation using Wireshark to try and track down what's causing this. Here's a screenshot of my bandwidth monitor (Networx) showing the network activity when first linking a database to source control, I've broken it down into 4 phases.
During phase 1, SQL Source Control is checking out a working copy to the WorkingBases folder. You can see by the big spike that it'll go as fast as your bandwidth allows. We removed a couple large static tables from SVN to reduce this from 120 MB to below 7 MB, and now we can download the working copy very quickly, even on a 3G cell modem.
Phase 2 is the slow part, where SQL Source Control can hang at 10% for hours. I inspected the traffic with Wireshark, and it is making calls back to our Subversion server for every single object in our database. This is highly dependent on latency and the number of objects stored in Subversion. You can see from the screenshot below that we have over 1700 objects, and even on a 10 Mbit cable line, this can take an hour or more.
I don't understand why this needs to be done at all; SQL Source Control has just checked out a fresh working copy so there is no need to communicate with Subversion at this point. Doing these comparisons against the local copy would be significantly faster.
Phase 3 is where the "linking database to source control" dialog disappears and the asynchronous comparison begins.
Phase 4 is where the Get Latest tab says "Accepting updates from source control." Wireshark shows that once again, it is making separate calls for each individual object in source control.
I know you're always looking for ways to improve performance, and I believe that updating the working copy and then doing the comparisons locally would be much faster than pulling each object individually from the source control server. I hope you'll find this information useful for your next round of performance tuning.