'ObjectBox: deleting a field in model
When I delete a field in a model, I can see from the db browser that the field is deleted, but I don't quite see the size of the DB file change. How and when is the deletion reflected in the DB file?
Solution 1:[1]
The field/property is marked as retired (observe the UID of the property being moved to the retired section in the model file default.json), no data is actually removed. If that is a concern, write code to update all objects (e.g. set that field to null, then put) before removing the field/property.
You might also be interested in the reclaim disk space question.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Steve Blackwell |
