Closed sksar closed 8 years ago
Wait, does this really happen?
When you override 'hello' the old version is marked as garbage in the file. It will be overwritten by another put in the future. This means that you'll usually only ever have two versions of 'hello' in the file.
when i run
db.put('hello', {world:1});
and then at a later time after closing and reopening i run that againi get two entries of
hello
?? why is this so?? from the api i am never gonna get the previous value ofhello
so why does the value still persists.. is there a way not to make such things happen so that the file size gets reduced