Situation:
We use local SQL Server instances on our laptops and tie these to our SVN repositories using Red-Gate’s SQL Source Control. Initially when I was issued this laptop performing a “get latest” and “commit” synchronizations went relatively fast (< 2 minutes for 1/4 through 4/4). Then after a few weeks it became very apparent that the process had slowed dramatically and now the process takes around 20 minutes for a single synchronization.
At this point I had begun trying every basic troubleshooting tactic for this problem with SQL Source Control doing everything from uninstall to reinstall; to upgrading the version to the latest and even stepping down to various older versions. I tested SSC with a local repository to rule out network, and with a “working folder”, and even used the “Just evaluating” lite repository. They all were very slow; as slow as every other option taking at least 20 minutes to perform a single sync.
When that didn’t rectify the issue I contacted Red Gate through our support contract. Long story short, this went nowhere fast. After months of going through many different scenarios we didn't seem to be any closer to a resolution.
Eventually I discovered that suddenly I could sync a database much faster (around 5 minutes) if there was no static data linked to the repository. But the problem was that the data had to be linked (either SSIS configuration data or RI static data) so this was not a viable option but it does help pinpoint the real issue a bit more.
Now the time to sync has crept up to around 2 hours for a single sync. There are several other developers also dealing with this issue one of which has to wait up to 6 hours to complete a get latest.
Other information:
• No other applications run slow on this laptop
• The drive is an encrypted SSD that has been configured to use 1GB of RAM for caching
• We have tested with the anti-virus / defense software disabled and it made no difference
What can be the cause of this?