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

[v10] Cache Realm instances #3325

Merged
merged 2 commits into from
Oct 12, 2020
Merged

[v10] Cache Realm instances #3325

merged 2 commits into from
Oct 12, 2020

Conversation

kneth
Copy link
Contributor

@kneth kneth commented Oct 9, 2020

Porting #3322

@kneth kneth self-assigned this Oct 9, 2020
@kneth kneth force-pushed the kneth/v10/caching-realm-instances branch from ced8d8e to 058f1a5 Compare October 9, 2020 13:35
@blagoev blagoev merged commit 96feacc into v10 Oct 12, 2020
@blagoev blagoev deleted the kneth/v10/caching-realm-instances branch October 12, 2020 09:16
realm2.objects('StringOnlyObject');
TestCase.assertFalse(realm1.compact());
TestCase.assertTrue(realm1.compact());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing the test here is in the "limitation" of compact(): "Compaction will not occur if other Realm instances exist." Maybe add a comment about this?

And a question: What happens to realm2 when realm1 is closed (e.g. realm1.close())?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 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 this pull request may close these issues.

3 participants