locked
CTPv2.0 BatchDirectory and MemoryDataCacheSize over WCF RRS feed

  • Question

  • I am using ctp v2.0 peer-peer sync.  I dont see any longer BatchSize property.  Is BatchDirectory and MemoryDataCacheSize can be used instead?

    I used both BatchDirectory and  MemoryDataCacheSize it worked nice without WCF. 

    How it suppose to work with WCF as remote provider?

    • Moved by Max Wang_1983 Thursday, April 21, 2011 11:39 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Wednesday, September 2, 2009 12:38 AM

Answers

  • Udai,

    Yes, we have improved batching significantly and, in doing so,  the API surface has changed slightly.  Basing batches on # records is overly chatty and does not handle all scenarios well (i.e. syncing files of varying sizes).  Please see the following how to for a description of batching:

    http://msdn.microsoft.com/en-us/library/dd918908(SQL.105).aspx

    This how to leverages DbSyncProvider but you can just as easily use SqlSyncProvider to decrease the amt of code and a how describing its usage can be found here:

    http://msdn.microsoft.com/en-us/library/dd918848(SQL.105).aspx

    A sample project that describes using batching with WCF can be found in the following location after installing the v2 CTP2 SDK:

    C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\2.0\Runtime\ADO.NET\V3.0\Samples

    Regards,

    Sean Kelley
    Program Manager
    Microsoft

     

     

    Wednesday, September 2, 2009 6:15 PM
    Moderator