" "?
, (. DOCS-1528) . MongoDB , padding_foobar " " , ,
caveat : MongoDB , , , .
(. , , , , , ):
// 1. insert w/ 20 bytes of 'content'
insert({"name" : "john", "pad" : "0000000000000000"});
// 2. now we're performing an update, removing 16 bytes of padding, adding
// 3 bytes so we now have 7 bytes of 'content'
update({"name" : "john"}, {$unset: {"pad": 1}, $set: {"foo" : "bar"}});
// 3. at this point, we can easily grow the document again, as long as it doesn't
// grow past its original size of 20 bytes of content
update({"name" : "john"}, {$set: {"foo" : "barfoobar"}});
, 2), , 7 " ". 3) , " " , .
, , . , , (, , -), .