超級快、小的 key-value 數據存儲: Lightning MDB

jopen 11年前發布 | 16K 次閱讀 NoSQL數據庫 Lightning MDB

LMDB 是一個超級快、超級小的 key-value 數據存儲服務,是由 OpenLDAP 項目的 Symas 開發的。使用內存映射文件,因此讀取的性能跟內存數據庫一樣。其大小受限于虛擬地址空間的大小。

  • Ordered-map interface (keys are always sorted, supports range lookups)
  • Fully transactional, full ACID semantics with MVCC.
  • Reader/writer transactions: readers don't block writers and writers don't block readers. Writers are fully serialized, so writes are always deadlock-free.
  • Read transactions are extremely cheap, and can be performed using no mallocs or any other blocking calls.
  • Supports multi-thread and multi-process concurrency, environments may be opened by multiple processes on the same host.
  • Multiple sub-databases may be created with transactions covering all sub-databases.
  • Memory-mapped, allowing for zero-copy lookup and iteration.
  • Maintenance-free, no external process or background cleanup/compaction required.
  • No application-level caching. LMDB fully exploits the operating system's buffer cache.
  • 32KB of object code and 6KLOC of C.
  • Licensed under the OpenLDAP Public License



 

項目主頁:http://www.baiduhome.net/lib/view/home/1376871918459

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!