locked
Batching and Surrogate Serialization in V2 CTP2 Release RRS feed

  • Question

  • Hello,

    are there any new features/bugfixes for Batching or the Surrogate Serialization for WCF-based Services? (see: http://blogs.msdn.com/mahjayar/archive/2008/10/01/dbsyncprovider-improving-memory-performance-in-wcf-based-synchronization.aspx).

    I, as well as many others here in the board, always have problems with implementing batching. Especially if you use DateTime (as it is shown in nearly all beginners tutorials) instead of timestamp for change tracking.


    Regards from Cologne,

    Martin
    • Moved by Hengzhe Li Friday, April 22, 2011 2:57 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Monday, June 15, 2009 7:56 AM

Answers

All replies

  • Hi,

    The new peer sync provider (DbSyncProvider) provides a batching support in the CTP2 release. A MemoryDataCacheSize property is used to control the batch size. If you have already installed the V2 CTP2 SyncSDK.msi, you can find more details in section "Configuring and Using Batching" in the %ProgramFiles%\Microsoft SDKs\Microsoft Sync Framework\v2.0\Documentation\1033\SyncSDK_v2.chm.

    Thanks,
    Dong


    This posting is provided AS IS with no warranties, and confers no rights.
    Monday, June 15, 2009 5:18 PM
    Moderator
  • Hi,

    Add more info here. For n-tier sync, customer WCF services need to handle batching file serialization. A sample can be found in %ProgramFiles%\Microsoft SDKs\Microsoft Sync Framework\v2.0\Runtime\ADO.NET\V3.0\Samples\WebSharingAppDemo-CEProviderEndToEnd.

    Thanks,
    Dong


    This posting is provided AS IS with no warranties, and confers no rights.
    Monday, June 15, 2009 5:37 PM
    Moderator
  • Hi,

    thanks. I will try it. And what about surrogates?
    AFAIK datasets are serialized twice in one single XML over WCF in CTP1?


    Bye,
    Martin
    Tuesday, June 16, 2009 8:50 AM
  • Hi,

    Is there also an example for n-tier WCF webservice sync using SQL2008 change tracking and batching? Because the example you give is using custom change tracking.

    Thanks
    Tuesday, June 16, 2009 10:54 AM
  • Hi,

    The new peer sync provider doesn't support SQL2008 change tracking yet. Please look at the explanation in this link: http://social.msdn.microsoft.com/Forums/en-US/uklaunch2007ado.net/thread/0b3e7150-fa76-4c41-97b7-e12d6f3f6713


    Thanks,
    Dong


    This posting is provided AS IS with no warranties, and confers no rights.
    Tuesday, June 16, 2009 5:19 PM
    Moderator
  • Hi ,

    Can Any one Help us regarding surrogates?

    any Sample Application or Articles on this.

    Thanks
    Lakshmi Narayana
    Thursday, June 18, 2009 6:56 AM
  • Well I am still waiting for an answer, if the Surrogate Customization is necessary in CTP2 or not ;-)
    Thursday, June 18, 2009 8:29 AM