Skip to content

Need Better Sync Implementation Guidance for SmartStore/MobileSync #2792

@abhinavRepo26

Description

@abhinavRepo26

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:

  1. Push local transactional data to server
  2. SyncDown only transactional soups
  3. Missing incremental sync capabilities
    4.Not handling server-side deletions

Master Sync:

  1. Push all transactional data
  2. Reset SmartStore completely
  3. SyncDown all soups from scratch
  4. Very inefficient for large datasets

What I Need Help With:

  1. Incremental Sync Implementation:
  2. How to properly implement delta sync (only changed records)
  3. How to handle server-side deletions in client
  4. Proper use of lastModifiedDate and sync targets
  5. Sync Order & Best Practices:
  6. Correct sequence for push/pull operations
  7. How to handle conflicts
  8. When to use clean sync vs incremental sync
  9. SmartStore Optimization:
  10. How to avoid complete store resets
  11. Proper soup configuration for efficient sync

Specific Questions:

  1. What is the proper way to implement incremental sync that only downloads changed records?
  2. How do I detect and handle records deleted on the server?
  3. What's the recommended sync strategy for mixed transactional/master data?
  4. How to configure sync targets for automatic delta detection?
  5. Best practices for conflict resolution during sync?

Expected Outcome:

  1. Efficient incremental sync implementation
  2. Proper handling of server-side deletions
  3. Optimized sync performance
    4.Reduced data transfer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions