You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It seems the library does not removed the nodes, which is already added to the db, during the updating. The old nodes are only removed in the live cache, rather than in the db. So if one node is commit to the db, it will stay there forever. For example, if I run the code:
keys := getFreshData(10000, 32)
for i := 0; i < 30; i++ {
values := getFreshData(10000, 32)
smt.Update(keys, values)
smt.Commit()
}
The size of the db keeps growing, even the keys do not change.
The text was updated successfully, but these errors were encountered:
When Commit(), the key in the s.db.removedNode will be removed. And in my test scenario, the size of db no longer grows. Do you think it's a valid fix?
Hi,
It seems the library does not removed the nodes, which is already added to the db, during the updating. The old nodes are only removed in the live cache, rather than in the db. So if one node is commit to the db, it will stay there forever. For example, if I run the code:
The size of the db keeps growing, even the keys do not change.
The text was updated successfully, but these errors were encountered: