diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 4f41994c..3870f7ce 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -1183,7 +1183,8 @@ void RealmClass::compute_size(ContextType ctx, ObjectType this_object, Argume args.validate_maximum(0); SharedRealm realm = *get_internal>(this_object); - return_value.set(Value::from_number(ctx, realm->compute_size())); + auto size = realm->read_group().compute_aggregated_byte_size(); + return_value.set(Value::from_number(ctx, size)); } } // js diff --git a/src/object-store b/src/object-store index c12c750e..0bcb9643 160000 --- a/src/object-store +++ b/src/object-store @@ -1 +1 @@ -Subproject commit c12c750ecef2ba198d20ff073df05dfa2f750102 +Subproject commit 0bcb9643b8fb14323df697999b79c4a5341a8a21