Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumeration of objects in migration without loading everything into memory #2205

Closed
porsager opened this issue Jul 15, 2015 · 0 comments · Fixed by #2206
Closed

Enumeration of objects in migration without loading everything into memory #2205

porsager opened this issue Jul 15, 2015 · 0 comments · Fixed by #2206
Assignees

Comments

@porsager
Copy link
Contributor

Hi.

I've made a custom keyboard for iOS using realm for the dictionaries.
A dictionary contains up to 400.000 words, and I'm unable to do migrations from the keyboard extension due to the extensions being limited at 50mb memory usage.

Would it be possible to allow for enumeration of objects either per object or in batches in a migration without loading the whole db into memory? (as an example a 9.8mb realm file with 360.000 words peaks at 152mb if i enumerate (making no changes) during migration)

If there is any way to get this done currently i would also love to know.

Thanks
Rasmus.

@segiddins segiddins self-assigned this Jul 15, 2015
@segiddins segiddins added the pr label Jul 15, 2015
@segiddins segiddins removed the pr label Jul 22, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants