question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose compact() method on Realm instances

See original GitHub issue

We can call it something else in JS, but essentially it would just call SharedRealm::compact(). This would alleviate concerns for app developers over ever-growing Realm file sizes.

This issue was brought up in #504.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lakhmancommented, Dec 17, 2016

I figured out the unexpected growth of file size, it was related to:

https://github.com/realm/realm-browser-osx/issues/71

Using the Realm Browser in OSX (while developing), causes the file size to grow and not reuse the existing space. Once you close the Realm Browser Instance, the file size works as expected.

+1 for a compact method, would be nice to reclaim users disk space as required.

0reactions
knethcommented, Aug 14, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Realm (Realm 3.2.0) - MongoDB
The Realm class is the storage and transactional manager of your object persistent store. It is in charge of creating instances of your...
Read more >
Recommended way to handle removing/renaming a realm ...
Realm.compact() removes the space left behind by deletions. Compacting works if there are no open Realm instances.
Read more >
Securing Applications and Services Guide - Keycloak
There are really two types of use cases when using SAML. The first is an application that asks the Keycloak server to authenticate...
Read more >
Configuring Strimzi (0.32.0)
This procedure shows only some of the possible configuration options, ... In most cases, the Cluster Operator only updates your Kafka or ZooKeeper...
Read more >
Guide to Infinispan Server
Run Infinispan Server instances in a Java Virtual Machine (JVM). Prerequisites. Download and install the server distribution. Procedure. Open a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found