Hacker News new | ask | show | jobs
What data format for object (like JSON) supports in place update?
1 points by haint 3613 days ago
Hi, I want to ask if anybody knows the data format for object serialization that supports in place update (updating a field of object does not cause the rest of object to be copied to another memory location to fit new size of this object)
1 comments

Some data stores (Mongo, CouchDB) do support in-place updating of JSON objects
Yes, but they are not efficient: When updating one small field, like string, which is larger than the original one, the whole document must be resized too, to have enough space for the updated field. This is inconvenient.