google/leveldb

Description: LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Added to GitGenius on June 20th, 2026
Created on August 27th, 2014
Open Issues & Pull Requests: 395 (+0)
Number of forks: 8,204
Total Stargazers: 39,250 (+0)
Total Subscribers: 1,305 (+0)

Issue Activity (beta)

Open issues: 54
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 653 days
Stale 30+ days: 53
Stale 90+ days: 49

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (3)
  • enhancement (2)
  • question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 13.7 days
Mean response time: 87.3 days
90th percentile: 114.5 days
Tracked items: 42

Most active contributors

Detailed Description

LevelDB is a fast key-value storage library developed at Google that provides an ordered mapping from string keys to string values. Written in C++, it serves as an embedded database and storage engine designed for high-performance data persistence with efficient read and write operations on sorted data.

The library implements core key-value operations through Put, Get, and Delete methods, where both keys and values are arbitrary byte arrays. Data is automatically stored in sorted order by key, though users can provide custom comparison functions to override this default ordering. LevelDB supports atomic batch operations, allowing multiple changes to be applied together, and provides snapshot functionality for obtaining consistent views of data at specific points in time. The library enables both forward and backward iteration over stored data.

Compression is a built-in feature, with Snappy compression applied automatically by default. The library also supports Zstd compression as an alternative. External operations including file system interactions are abstracted through a virtual interface, allowing users to customize how the library interacts with the operating system.

According to GitGenius activity tracking, the repository has received 42 tracked issues and pull requests with a median response latency of 329.1 hours and a mean latency of 2094.9 hours. The most active labels tracked are bug with 3 occurrences, enhancement with 2 occurrences, and question with 1 occurrence. Primary contributors include cmumford with 27 tracked events, robofinch with 9 events, and luke-jr with 4 events. The repository shares overlapping contributors with llvm/llvm-project, php/php-src, and microsoft/vscode.

The repository explicitly states it is receiving very limited maintenance and will only review critical bug fixes such as those addressing data loss or memory corruption, along with changes needed by internally supported leveldb clients. This maintenance posture reflects Google's focus on keeping the library stable rather than expanding its feature set.

LevelDB has specific limitations that define its scope. It is not a SQL database and lacks relational data models, SQL query support, and indexing capabilities. Only a single process, though possibly multi-threaded, can access a particular database at any given time. The library does not include built-in client-server support, requiring applications needing such functionality to implement their own server wrapper.

The project supports CMake for building and works on both POSIX systems including Linux and macOS, as well as Windows with Visual Studio 2017. Performance benchmarks included in the repository demonstrate sequential write performance at approximately 62.7 MB/s, random write performance around 45 MB/s, and random read performance of approximately 60,000 reads per second, with improvements to approximately 190,000 reads per second after compaction when sufficient cache is available.

The public API is defined through header files in the include/leveldb directory, with the main database interface in db.h, options control in options.h, and additional interfaces for iteration, batch writes, and custom comparators. The repository maintains strict contribution requirements including testing on supported platforms only, preservation of API stability, comprehensive test coverage, and adherence to the Google C++ Style Guide.

leveldb
by
googlegoogle/leveldb

Repository Details

Fetching additional details & charts...