realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Data Seeding Performance in realm-js 12 vs 11 is nearly 10x slow

Open tharwi opened this issue 6 months ago • 4 comments

How frequently does the bug occur?

Always

Description

After upgrading from Realm JS 11 to Realm JS 12, I observed a significant increase in the time it takes to seed data. The seeding process time changed from approximately ~500 milliseconds to ~5000 milliseconds.

Stacktrace & log output

Data seeding completed in 5170 ms
Data seeding completed in 560 ms

Can you reproduce the bug?

Always

Reproduction Steps

  1. Clone the example project: realm-js-seed-example
  2. Install dependencies: npm install && cd ios pod install
  3. Run the project on a simulator/emulator or device
  4. Observe the time taken to seed data in the console.

Version

11.10.2 and 12.12.1

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 17.2

Build environment

react-native: 0.74.2 node: v18.17.1

Cocoapods version

1.15.2

tharwi avatar Aug 08 '24 08:08 tharwi