google/leveldb
View on GitHub ↗ ★ 39,516 C++
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
27 mentions on Hacker News by 24 people: 2 stories, 25 comments · first 2015-02-23 · latest 2026-01-15
20082026
-
…around its runtime and its memory allocator that means we can’t reuse an existing library. 1: https://github.com/google/leveldb 2: https://github.com/scylladb/seastar 3: https://github.com/redpanda-data/redpanda/pull/28351
comment by rockwotj · 2025-11-09 · in Ask HN: What Are You Working On? (Nov 2025) -
…file systems, the database could become corrupted after a crash or power failure.[21]..." https://github.com/google/leveldb/issues?utf8=%E2%9C%93&q=co... https://bugs.chromium.org/p/chromium/issues/detail?id=261623…
comment by belter · 2023-04-13 · in SQLite performance tuning: concurrent reads, multiple GBs and 100k SELECTs/s -
Google didnt, thus Chrome started replacing sqlite with https://github.com/google/leveldb
comment by rasz · 2023-04-13 · in SQLite performance tuning: concurrent reads, multiple GBs and 100k SELECTs/s -
LevelDB by Jeff and Sanjay. https://github.com/google/leveldb
comment by danielmarkbruce · 2022-09-11 · in Ask HN: What's the best source code you've read? -
leveldb https://github.com/google/leveldb
comment by valdect · 2022-09-10 · in Ask HN: What's the best source code you've read? -
…https://etcd.io/docs/v3.4/learning/why/ https://riak.com/products/riak-kv/ https://rocksdb.org/ https://github.com/google/leveldb http://www.memcached.org/
comment by twic · 2022-05-29 · in Warp: Lightweight Multi-Key Transactions for Key-Value Stores -
LevelDB: https://github.com/google/leveldb
comment by diehunde · 2022-04-01 · in Ask HN: What are the best key-value self-hosted storage engines? -
+1000 https://github.com/google/leveldb Jeff Dean and Sanjay Ghemawat are amazing engineers and this code is (/was?) nice.
comment by danielmarkbruce · 2022-03-21 · in Ask HN: Codebases with great, easy to read code? -
You seem to be describing leveldb: https://github.com/google/leveldb
comment by Sammi · 2021-12-31 · in Consider SQLite -
…out redis's implementation: https://github.com/redis/redis/blob/unstable/src/t_zset.c Or leveldb's: https://github.com/google/leveldb/blob/master/db/skiplist.h
comment by uyt · 2021-07-22 · in Binary Trees are optimal except when they’re not -
This is the "secret sauce" behind LevelDB: https://github.com/google/leveldb#performance
comment by gravypod · 2021-06-21 · in What every programmer should know about SSDs -
…[2] hash-sharding means: piece[i] has all the keys where hash(key) % N = i. [3] https://github.com/google/leveldb/blob/master/doc/table_form... although they just say "formatted according to the code in block_builder.cc" instead of descri
comment by scottlamb · 2021-05-03 · in Hosting SQLite databases on GitHub Pages or any static file hoster -
To avoid some confusion, this is only the "distributed" part. The actual store is handled by the https://github.com/google/leveldb library.
comment by nucatus · 2021-01-05 · in A distributed key value store in under 1000 lines -
…authors are Jeff Dean and Sanjay Ghemawat, so you know it's going to be really well written. https://github.com/google/leveldb
comment by MorganGallant · 2020-10-28 · in Ask HN: Good C++ code bases to read? -
…used C++ project, written by the same people who wrote core parts of Google Search 20 years ago: https://github.com/google/leveldb
comment by chubot · 2020-03-12 · in Google Open Source Code Search -
Powered by LevelDB ( https://github.com/google/leveldb )
comment by justjake · 2019-11-21 · in Show HN: EasyDB – A One-Click Ephemeral Database -
…like OS X's "no really, fsync" param [1], or Motorola shipping nobarrier on their phones. [2] [1] https://github.com/google/leveldb/issues/203#issuecomment-55... [2] http://taras.glek.net/post/Followup-on-Pixel-vs-Moto:fsync/
comment by charleslmunger · 2019-05-29 · in A way to do atomic writes -
…I like leveldb (a key-value DB library) and re2 (a regex engine). Random files from each of them: https://github.com/google/leveldb/blob/master/table/table_bu... https://github.com/google/re2/blob/master/re2/nfa.cc
comment by chubot · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
I think the open-source equivalent of RecordIO is the leveldb log format: https://github.com/google/leveldb/blob/master/doc/log_format... https://github.com/google/leveldb/blob/master/db/log_reader....…
comment by haberman · 2018-04-11 · in Prototool – A Swiss Army Knife for Protocol Buffers -
…of a single Bigtable tablet[2]. [0]: https://news.ycombinator.com/item?id=13854431 [1]: https://github.com/google/leveldb [2]: http://research.google.com/archive/bigtable.html , section 5.3
comment by irfansharif · 2017-10-02 · in Interesting Codebases -
https://github.com/google/leveldb
comment by pacala · 2017-07-09 · in Ask HN: Name good examples of Modern C++ usage -
…tiny codebase at that, used virtually everywhere and the basis for facebook/rocksdb[2]. [1]: https://github.com/google/leveldb [2]: https://github.com/facebook/rocksdb
comment by irfansharif · 2017-03-13 · in Ask HN: What are some examples of good code? -
…reported against LevelDB, a database system developed at Google, was discovered using QuickCheck: https://github.com/google/leveldb/issues/50 . You can read more about it at http://htmlpreview.github.io/?https://raw.github.com/strange...
comment by mavelikara · 2016-12-25 · in QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs (2000) [pdf] -
Is LevelDB linked in this article related to leveldb developed at Google ( https://github.com/google/leveldb ) ?
comment by vskr · 2015-04-12 · in Firefly – Full Text Search Engine for Dropbox -
…use LevelDB... we use the SSTables that underly LevelDB. Since we know we're write-once, we use https://github.com/google/leveldb/blob/master/include/leveld... directly for writes (and its Go equivalent for reads). I'm familiar with the…
comment by kcudrevelc · 2015-02-23 · in Stenographer – A full-packet-capture utility