LevelDB
LevelDB is an open-source on-disk key-value store written by Google fellows Jeffrey Dean and Sanjay Ghemawat.[src] Inspired by Bigtable, LevelDB source code is hosted on GitHub under the New BSD License and has been ported to a variety of Unix-based systems, macOS, Windows, and Android.[src]
LevelDB is an open-source on-disk key-value store written by Google fellows Jeffrey Dean and Sanjay Ghemawat.[src] Inspired by Bigtable, LevelDB source code is hosted on GitHub under the New BSD License and has been ported to a variety of Unix-based systems, macOS, Windows, and Android.[src] ==Features== LevelDB stores keys and values in arbitrary byte arrays, and data is sorted by key.[src] It supports batching writes, forward and backward iteration, and compression of the data via Google's Snappy compression library.[src] LevelDB is not an SQL database.[src] Like other NoSQL and dbm stores, it does not have a relational data model and it does not support SQL queries.[src] It has no support for indexes.[src] Applications use LevelDB as a library, as it does not provide a server or command-line interface.[src] MariaDB 10.0 comes with a storage engine which allows users to query LevelDB tables from MariaDB.[src] ==History== LevelDB is based on concepts from Google's Bigtable database system.[src] The table implementation for the Bigtable system was developed starting in about 2004, and is based on a different Google internal code base than the LevelDB code.[src] That code base relies on a number of Google code libraries that are not themselves open sourced, so directly open sourcing that code would have been difficult.[src] Jeff Dean and Sanjay Ghemawat wanted to create a system resembling the Bigtable tablet stack that had minimal dependencies and would be suitable for open sourcing, and also would be suitable for use in Chrome for the IndexedDB implementation.[src] They wrote LevelDB starting in early 2011, with the same general design as the Bigtable tablet stack, but not sharing any of the code.[src] ==Usage== LevelDB is used as the backend database for Google Chrome's IndexedDB and is one of the supported backends for Riak.[src] Additionally, Bitcoin Core and go-ethereum store the blockchain metadata using a LevelDB database.[src] Minecraft Bedrock Edition uses a modified version for chunk and entity data storage.[src] Autodesk AutoCAD 2016 also uses LevelDB.[src] ==Performance== Google has provided benchmarks comparing LevelDB's performance to SQLite and Kyoto Cabinet in different scenarios.[src] LevelDB outperforms both SQLite and Kyoto Cabinet in write operations and sequential-order read operations.[src] LevelDB also excels at batch writes, but is slower than SQLite when dealing with large values.[src] The currently published benchmarks were updated after SQLite configuration mistakes were noted in an earlier version of the results.[src] Updated benchmarks show that LevelDB also outperforms Berkeley DB, but these tests also show that OpenLDAP LightningDB is much faster (~10 times in some scenarios) in read operations and some write types (e.g.[src] batch and synchronous writes, see the link above), and is almost equal in the rest of the test.[src] All the above benchmarks date back from 2011 to 2014, and may only be of historical significance as SQLite, for instance, became significantly more efficient.[src] ==Bugs and reliability== LevelDB has a history of database corruption bugs.[src] A study from 2014 has found that, on non-checksummed file systems, the database could become corrupted after a crash or power failure.[src] ==See also== Ordered Key-Value Store ==References== ==External links==[src]
30 sentences · 30 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"LevelDB." encyclopegia.org, 2026, https://encyclopegia.org/wiki/leveldb. Accessed 03 December 2026.
Chicago
"LevelDB." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/leveldb.
APA
encyclopegia.org. (2026). LevelDB. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/leveldb
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON