Nodes layout
Figures below shows only affected nodes
Initial state (we have key "PREFIX" with value "VAL")
-
Simplest case:
transaction->put("PREFIX", "NEW VAL")
- update existing key. If size of new value is the same, nothing changed in nodes layout. Only old value replaced by new one. If size of new value differs, new node (with new value) will be created -
transaction->put("PRE", "VAL")
- will create two nodes
transaction->put("PREFIXNEW", "VAL")
- will create two nodes
transaction->put("PREPARE", "VAL")
- will create three nodes