> For the complete documentation index, see [llms.txt](https://gotolabs.gitbook.io/merklepatriciatrie/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gotolabs.gitbook.io/merklepatriciatrie/storage/pebble.md).

# Pebble

PebbleDB is a lightweight, efficient key-value store designed for simplicity and performance. It provides a seamless way to manage data without the overhead of complex configurations or setups.

🔄 **Integration with MerklePatriciaTree**:

PebbleDB serves as the primary storage mechanism for our [`MerklePatriciaTree`](https://github.com/Aleksao998/MerklePatriciaTrie/tree/main/storage/pebble). It's responsible for persisting the data and ensuring its integrity. When the tree commits, PebbleDB stores the data. Additionally, the tree's root hash is specifically saved under the key: `const rootHashKey = "rootHash"` for easy access and consistency.

📚 **Learn More**:

Dive deeper into PebbleDB's architecture and features by exploring its [GitHub repository](https://github.com/cockroachdb/pebble).
