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

Possibly optimize `ClassMap` updates after schema changes

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Node.js, React Native
    • None

      Whenever the schema is updated, we reinitialize the ClassMap:
      https://github.com/realm/realm-js/blob/768a632f207d0ee59641782a1ba7c9e6c4c541bb/packages/realm/src/Realm.ts#L664

      Since this can be quite an expensive operation, we should look into if it makes sense for this use case to be optimized, and if so, possible approaches we could take.

      https://github.com/realm/realm-js/blob/768a632f207d0ee59641782a1ba7c9e6c4c541bb/packages/realm/src/ClassMap.ts#L117-L164

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

              Created:
              Updated: