Importing large datasets #114

Closed
opened 2025-12-29 15:24:49 +01:00 by adam · 2 comments
Owner

Originally created by @terenzeyuen on GitHub (Dec 16, 2016).

We noticed whenever we trigger commit with large imports (30k record), UI thread stalls for a few seconds. Is this normal? @JohnEstropia

Originally created by @terenzeyuen on GitHub (Dec 16, 2016). We noticed whenever we trigger commit with large imports (30k record), UI thread stalls for a few seconds. Is this normal? @JohnEstropia
adam added the question label 2025-12-29 15:24:49 +01:00
adam closed this issue 2025-12-29 15:24:49 +01:00
Author
Owner

@JohnEstropia commented on GitHub (Dec 16, 2016):

Do you use ListMonitors? Saving objects will trigger updates on monitors, which notifies the UI on the main thread. So if you save a lot of objects at once those will have noticeable effects on the UI.

My suggestion is to save your 30k records into chunks. Say, one beginAsynchronous for each 1000 items.

@JohnEstropia commented on GitHub (Dec 16, 2016): Do you use ListMonitors? Saving objects will trigger updates on monitors, which notifies the UI on the main thread. So if you save a lot of objects at once those will have noticeable effects on the UI. My suggestion is to save your 30k records into chunks. Say, one `beginAsynchronous` for each 1000 items.
Author
Owner

@terenzeyuen commented on GitHub (Dec 29, 2016):

Thanks !

@terenzeyuen commented on GitHub (Dec 29, 2016): Thanks !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#114