Enable Manual Check for Changes to Large Database
jkennedy
Posts: 18
We have 2 of our 20 or so databases that are very large (30k objects). Right now, every time that I access those databases, a check for changes is triggered. This can take 20 minutes to an hour to complete. That entire time these activities are competing with more important processes. Is there a way to trigger a manual check once a week or so for these dbs? We're using TFS as a repository.
Comments
I hope the following work around maybe useful to you:
If your server is struggling due to the default blue indicator polling frequency, it is possible to reconfigure it.
All SQL Source Control users need to set this individually.
To achieve this you will need to close SSMS, and edit the 'RedGate_SQLSourceControl_Engine_EngineOptions' in your SQL Source Control configuration directory. This is either: C:\Users\<username>\AppData\Local\Red Gate\SQL Source Control 3 or C:\Documents and Settings\<username>\Local Settings\Application Data\Red Gate\SQL Source Control 3 depending on your operating system version.
Add the following node (as a child of the EngineOptions node) to the file:
<PollingEnabled>False</PollingEnabled>
The regular polling on your server to determine what you've changed won't happen. This means that to see the blue indicators in the Object Explorer you will need to visit the Commit tab.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
C:\Users\[my username]\AppData\Local\Red Gate\SQL Source Control 3\RedGate_SQLSourceControl_Engine_EngineOptions.xml to reflect the following:
<?xml version="1.0" encoding="utf-16" standalone="yes" ?>
- <!-- SQL Compare 10
SQL Compare
Version:10.1.0.102
-->
- <EngineOptions version="2" type="EngineOptions">
<PollingEnabled>False</PollingEnabled>
</EngineOptions>
Then completely restarted.
I also tried:
<?xml version="1.0" encoding="utf-16" standalone="yes" ?>
- <!-- SQL Compare 10
SQL Compare
Version:10.1.0.102
-->
- <EngineOptions version="2" type="EngineOptions">
<Polling-Enabled>False</Polling-Enabled>
</EngineOptions>
I'm still getting the auto-check for modifications. Is there anything else that I can try?
Not sure where or why you are picking up or including the SQL Compare infomation version information.
The RedGate_SQLSourceControl_Engine_EngineOptions.xml before editing should be as follows:
After editing should look be as follows:
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I even tried deleting and reinstalling SQL Source Control and it didn't help. Any other thoughts?
Can you please try a slight alteration to the xml code and change the version number to 3, so it becomes:
One of my colleagues handled a similar call and the above change was made which resolved the issue and stopped the constant polling by SQL Source Control.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
After I restarted SSMS and relinked a database, I'm still polling. Any other thoughts?
I have been discussing your problem with my colleagues in the Support Team. My colleagues do not think that your issue is the polling problem. They suspect that your issue is this User Voice Forum TOPIC.
The topic is a request for the 'Commit Changes / Get Latest' to be a manual process and not be an automatic process. Can you please click on the link and read through this User Voice topic and if the topic matches your problem, can you please add a comment and vote for it?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com