talira

Fast embedded key-value storage library from Google with ordered keys

open sourceBSD-3-Clausefree

LevelDB is a fast key-value storage library written at Google by Sanjay Ghemawat and Jeff Dean that provides an ordered mapping from byte-array keys to byte-array values. It supports Put, Get and Delete, atomic batches of changes, snapshots for a consistent view, forward and backward iteration, custom key comparators and Snappy or Zstd compression, and routes file system access through a virtual interface you can replace. It's a C++ library you embed in your application, built with CMake on POSIX systems and Windows, and released under the BSD 3-Clause licence. It isn't a SQL database, allows only one process at a time per database and has no built-in server; the repository now receives very limited maintenance, mainly critical fixes.

Problems it solves

  • an embedded key-value store for a C++ application
  • store sorted keys on disk with fast lookups and range scans
  • a lightweight persistent storage engine to build a database on
  • atomic batch writes and snapshots in an embedded store

Features

  • ordered byte-array keys and values
  • Put, Get and Delete
  • atomic write batches
  • snapshots
  • forward and backward iteration
  • custom comparators
  • Snappy and Zstd compression
  • pluggable environment for file system access
  • CMake builds for POSIX and Windows

Limitations

  • Not a SQL database: no relational model, SQL queries or indexes1
  • Only a single process (possibly multi-threaded) can access a database at a time1
  • No built-in client-server support1
  • Receives very limited maintenance: only critical bug fixes and changes needed by internal clients are reviewed1

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what LevelDB does.

  1. Valkey An open source (BSD) high-performance key/value datastore
  2. Redis The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine

Compare LevelDB with the top 3