Join the Power Platform Masterclass #2 starting April 23

Advanced sync setup: Difference between revisions

Jump to navigation Jump to search
Line 196: Line 196:
</SyncDownloaderSetup>
</SyncDownloaderSetup>
</SESetup></syntaxhighlight>
</SESetup></syntaxhighlight>
=== Platform-specific examples ===


<syntaxhighlight lang='xml'>// All Windows platforms: 5000 records per page, 1GB cache size.
<syntaxhighlight lang='xml'>// All Windows platforms: 5000 records per page, 1GB cache size.
Line 220: Line 222:
</SyncDownloaderSetup>
</SyncDownloaderSetup>
</SESetup></syntaxhighlight>
</SESetup></syntaxhighlight>
=== Priorizing an entity ===


<syntaxhighlight lang='xml'>// The new feature here is specifying priority for an entity.
<syntaxhighlight lang='xml'>// The new feature here is specifying priority for an entity.
Line 232: Line 236:
</SyncDownloaderSetup>
</SyncDownloaderSetup>
</SESetup></syntaxhighlight>
</SESetup></syntaxhighlight>
=== Complex example ===


<syntaxhighlight lang='xml'>// This complex setup illustrates how competing platform setups are evaluated.
<syntaxhighlight lang='xml'>// This complex setup illustrates how competing platform setups are evaluated.
Line 260: Line 266:
</Setup>
</Setup>
</SyncDownloaderSetup>
</SyncDownloaderSetup>
</SESetup></syntaxhighlight>
=== Resume interrupted full sync ===
A synchronization can get interrupted for many reasons. SyncEngine can remember the versionnumber of the last downloaded record so that the next sync can continue directly from this record.
Resuming an interrupted synchronization only applies to full sync with the Dynamics backend, for entities that have the versionnumber field.
During the sync, records are ordered by versionnumber. After downloading 20k records for an entity, the records are committed. If an entity has less than 20K records, this mechanism won't help.
Example: The contact entity has 300K records. FullSync lost connection after 210K contacts were downloaded. With interrupted sync allowed, the next sync will download only the last 100K records.
<syntaxhighlight lang='xml'>
<SESetup Version='1'>
      <SyncDownloaderSetup>
              <Setup DownloadCacheSize='1000' DownloadPageSize='5000' NumDownloadThreads='5' NoInterruptedEntitySync='true' />
      </SyncDownloaderSetup>
</SESetup></syntaxhighlight>
</SESetup></syntaxhighlight>


Navigation menu