Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2511

Is there an example implementation of shouldCompact?

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      In the React Native SDK docs there is a tip:

      Every production application should implement a shouldCompactOnLaunch callback to periodically reduce the realm file size.

      Is there an example of such an implementation? What would be a "good" condition for this function? I understand that it depends on the use-case but there should be some guidelines about this, right?

      The only example I found is in this issue - #5237.

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: