We're developing a product that relies on the Microsoft Sync Framework to keep the data on a client app and on the server in sync. What we have noticed is when syncing about 16 tables and ~2200 records it will take about 4 minutes, which is not acceptable.
Using the SQL Server Profiler we found it is using sp_executesql to execute the queries. when run without sp_executesql a specific query runs in <1s, but with it takes over 10s.
So the question is: What are we doing wrong and is there anything we can do to speed it up.