Exploring Leveldb Embedded Database With Python Part 1
I got to know about LevelDB from the guys of Nodeup, a podcast program for node.js and they shared load of goodness about the project and it really got me excited to start exploring. You can heard the podcast here. In short, LevelDB is an open source on-disk key-value store written by Jeffrey Dean and Sanjay Ghemawat of Google.
Check out the benchmarks. LevelDB performs very well for sequential writes, bulk reads and writes. Not as good for random reads.
Now let’s get our hands dirty!
Download LevelDB and follow the commands below for installation. Do note that the installation location is not specified.
1 2 3
1 2 3
With a couple of lines you can create the DB, write a record, retrieve it and print it out.
1 2 3 4 5
As you can see LevelDB is a very modular, it can be coupled with other technologies to handle different storage needs.