LMDB freelist (and B-tree) Illustrated Guide
github.com·6d·
💾Database Formats
Preview
Report Post

How to regenerate illustrations

Illustrations used in this guide are auto-generated from the actual LMDB databases created by some test code. Therefore, they reflect the behaviour of the actual LMDB code currently embedded into turbo-geth via lmdb-go repository here: https://github.com/erigontech/mdbx-go. To understand which illustration is which, this guide will give its name, and will also show the test code that generates the database for each illustration. The illustrations can be reproduced by running:

make hack
./build/bin/hack --action defrag

This creates the .dot and .png files in the current directory.

Empty database

Test code does nothing:

func nothing(kv ethdb.KV, _ ethdb.Tx) (bool, error) {
return...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help