question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it normal on each sync to run CREATE PROCEDURE [dbo].[XXX_changes] ?

See original GitHub issue

I’m in the process of replacing the native SQL server replication with Dotmim.Sync. There are two SQL servers using SqlSyncChangeTrackingProvider on both client and server.

I’ve set-up a service that executes the SyncAgent.SynchronizeAsync every minute for 14 tables. I’ve noticed that on every sync, even when there are 0 changes, the following SQL commands are executed on the client:

image

It seems odd to me that commands like CREATE PROCEDURE [dbo].[XXX_changes] are executed on each and every sync, every minute.

Is this normal? Also perhaps because of the large amount of SQL queries, each sync (even with 0 changes) takes about 2.5 seconds, which seems slow to me.

Thank you for this wonderful library!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hakakoucommented, Jan 6, 2022

Dumbfounded! I guess I should read comments… Thank you for your time!

0reactions
Mimetiscommented, Jan 6, 2022

By the way, look carefully the first comment …

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syncing multiple stored procedures between instances
Current sync situation: We currently have 29 different stored procedures in the sync. The main sync uses them all which is to be...
Read more >
SQL Server - create stored procedure that runs several ...
Can I create one stored procedure that will run all of them, sequentially? Keep in mind that some of the middle ones in...
Read more >
Execute stored procedure sequentially
SQL already runs top down already, so I'm not sure what your point is here. If you have 3 SP's, each one will...
Read more >
Can I launch a stored procedure and immediately return ...
Not a bad idea, however in my case the stored procedure gets called from multiple places, so finding all those places and ensuring...
Read more >
CREATE PROCEDURE (Transact-SQL) - SQL Server
Creates a Transact-SQL or common language runtime (CLR) stored procedure in SQL Server, Azure SQL Database, and Analytics Platform System ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found