realm-js
realm-js copied to clipboard
Data Seeding Performance in realm-js 12 vs 11 is nearly 10x slow
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
- Clone the example project: realm-js-seed-example
- Install dependencies:
npm install && cd ios pod install
- Run the project on a simulator/emulator or device
- 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