-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Description
I'm struggling to implement proper incremental sync and deleted record cleanup with SmartStore/MobileSync. My current sync strategy is inefficient and I need guidance on the correct implementation approach.
Current Setup:
React Native with Salesforce SDK v13.1.0
Using SmartStore and MobileSync
Two sync modes: Transactional Sync & Master Sync
Current Implementation Problems:
Transactional Sync:
- Push local transactional data to server
- SyncDown only transactional soups
- Missing incremental sync capabilities
4.Not handling server-side deletions
Master Sync:
- Push all transactional data
- Reset SmartStore completely
- SyncDown all soups from scratch
- Very inefficient for large datasets
What I Need Help With:
- Incremental Sync Implementation:
- How to properly implement delta sync (only changed records)
- How to handle server-side deletions in client
- Proper use of lastModifiedDate and sync targets
- Sync Order & Best Practices:
- Correct sequence for push/pull operations
- How to handle conflicts
- When to use clean sync vs incremental sync
- SmartStore Optimization:
- How to avoid complete store resets
- Proper soup configuration for efficient sync
Specific Questions:
- What is the proper way to implement incremental sync that only downloads changed records?
- How do I detect and handle records deleted on the server?
- What's the recommended sync strategy for mixed transactional/master data?
- How to configure sync targets for automatic delta detection?
- Best practices for conflict resolution during sync?
Expected Outcome:
- Efficient incremental sync implementation
- Proper handling of server-side deletions
- Optimized sync performance
4.Reduced data transfer
Metadata
Metadata
Assignees
Labels
No labels