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

Database upgrade takes minutes and explodes in size. #4680

Closed
sync-by-unito bot opened this issue May 10, 2021 · 2 comments
Closed

Database upgrade takes minutes and explodes in size. #4680

sync-by-unito bot opened this issue May 10, 2021 · 2 comments
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented May 10, 2021

A Realm Java user has reported an issue with an upgrade from version 7.0.8 (core
6.1.3) to version 10.4.0 (core 10.5.6).

Such upgrade takes from 5 to 10 minutes to be processed on his db. He shared a demo database where we can replicate the issue. 

I have noticed on this demo database that not only it takes a great amount of time, but the size of the db also explodes by 7x its initial size. This space can later be reclaimed by doing compaction-on-launch.

How come is that this migration takes that amount of time, and how come that the database is left uncompacted after the migration?

@jedelbo
Copy link
Contributor

jedelbo commented May 20, 2021

This comes from the fact that we removed the search indexes for the primary key columns and because of that had to rebuild the tables. This is unfortunately a rather slow process. We are now working on re-introducing the indexes.
Assigning to @finnschiermer

@jedelbo jedelbo assigned finnschiermer and unassigned jedelbo May 20, 2021
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Jun 1, 2021

➤ Finn Andersen commented:

Should be fixed in Core release v11.0.0-beta.6

@sync-by-unito sync-by-unito bot closed this as completed Jun 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 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

No branches or pull requests

2 participants