mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Importing large datasets #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
beginAsynchronousfor each 1000 items.@terenzeyuen commented on GitHub (Dec 29, 2016):
Thanks !