Questions tagged [leveldb]

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

LevelDB is a fast key-value storage library written by Google, providing an ordered mapping from string keys to string values.

Inspired by Bigtable, LevelDB is used by many other systems, including Chrome (for IndexDB), Riak (optional back-end), and Bitcoin (blockchain metadata).

Some features

  • Batching writes
  • Forward & backward iteration
  • Compression of the data via Google's Snappy compression library.
  • Data sorted by key; a custom comparison function to override the sort order.
  • Users can create a transient snapshot to get a consistent view of data.

Official Links:

Books

  • Getting Started with LevelDB, By: Andy Dent, Ebook ISBN:978-1-78328-102-2 | ISBN 10:1-78328-102-2
405 questions
52
votes
3 answers

How to access Google Chrome's IndexedDB/LevelDB files?

I want to use Google Chrome's IndexedDB to persist data on the client-side. Idea is to access the IndexedDB outside of chrome, via Node.JS, later on. The background is the idea to track usage behaviour locally and store the collected data on the…
Chris
  • 2,296
  • 4
  • 27
  • 46
49
votes
3 answers

How does Leveldb compare with Redis or Riak or Tokyo Tyrant?

Leveldb seems to be a new interesting persistent key value store from Google. How does Leveldb differ from Redis or Riak or Tokyo Tyrant? In what specific use cases is one better than the other?
rafidude
  • 4,496
  • 7
  • 27
  • 23
36
votes
5 answers

Fastest, non-memory-based, multi-process key-value store for Node.js

What is the fastest non-memory key-value store for Node.js supporting multiple processes? I need to store simple key-value string/string pairs (not documents or JSON, just strings). Here are some examples (there would be millions of…
Ruben Verborgh
  • 3,545
  • 2
  • 31
  • 43
34
votes
4 answers

Does LevelDB support java?

I want to know if LevelDB supports java ? Where can i get the LevelDB. There are no files under http://code.google.com/p/leveldb/
Vivek
  • 11,938
  • 19
  • 92
  • 127
17
votes
2 answers

Webpack conditional require

I'm writing an isomorphic Key Value Store with webpack. This is currently my approach to load the libraries, which obviously doesn't work, because webpack wants to resolve both require. Whats' the right approach? var db = null; if (typeof window…
vardump
  • 658
  • 1
  • 10
  • 17
15
votes
2 answers

How is it possible to build database index on top of key/value store?

I was reading about LevelDB and found out that: Upcoming versions of the Chrome browser include an implementation of the IndexedDB HTML5 API that is built on top of LevelDB IndexedDB is also a simple key/value store that has the ability to index…
Lu4
  • 14,873
  • 15
  • 79
  • 132
14
votes
4 answers

Is there a good port of leveldb for C#?

I wish to use leveldb in my pure C# project. I have googled for a C# version of leveldb, but got no lucky. Any one can tell me where I can find a C# version of leveldb? Thanks
Jack
  • 3,913
  • 8
  • 41
  • 66
14
votes
2 answers

How to get the exact number of keys in leveldb fast?

It seems there's not such interface.. Do I have to iterate all keys to get the count? What is the design purpose of that? Or what is the limitation of implement this feature?
zchenah
  • 2,060
  • 16
  • 30
13
votes
1 answer

Using Phoenix Framework without Ecto

I'm developing an application with a web interface backed by Phoenix and I'm exploring alternate methods of storage to the current SQLite (and its Ecto driver) (yes I've heard of PGSQL, no I'm not willing to use it.) I'd like to use LevelDB and…
Hécate
  • 1,005
  • 9
  • 14
13
votes
2 answers

Understanding KeyValue embedded datastore vs FileSystem

I have a basic question with regards to FileSystem usage I want to use a embedded KeyValue store, which is very write oriented. (persistent) Say my value size is a) 10 K b) 1 M and read and updates are equal in number Cant I simply create files…
Rajesh Gaur
  • 287
  • 5
  • 11
11
votes
3 answers

Multiple instances of a levelDB database at the same time

Is there a way to access a levelDB database from several programs? Is there some kind of option to open the dababase as read only? For now, when opening the same database from to programs I get: /path/to/dir/with/levelDBdatabase/LOCK: Resource…
ezdazuzena
  • 6,120
  • 6
  • 41
  • 71
11
votes
4 answers

High performance persistent key value store for huge amount of records

The scenario is about 1 billion records. Each record has 1kb data size and is store in SSD. Which kv store can provide best random read performance? It need to reduce disk access to only 1 time per query and all of the data index will be stored in…
avhacker
  • 667
  • 1
  • 9
  • 20
11
votes
3 answers

Why does LevelDB needs more than two levels?

I think only two levels(level-0 and level-1) is ok, why does LevelDB need level-2, level-3, and more?
ideawu
  • 2,287
  • 1
  • 23
  • 28
10
votes
3 answers

Uncaught error from thread shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem

I am running an assembly jar file in command prompt and getting the exception below. And resulting in termination. Uncaught error from thread [ccp-akka.persistence.dispatchers.default-plugin-dispatcher-23] shutting down JVM since…
Jet
  • 3,018
  • 4
  • 33
  • 48
10
votes
1 answer

IndexedDB Performance and IndexedDB v/s WebSQL performance comparison

WebSQL and IndexedDB are both DB API for accessing (CRUD) the underlying embedded database in the web browser. Which, if I am correct, is like SQL for accessing (CRUD) any client-server database like Oracle etc. (in many case support for both WebSQL…
hagrawal7777
  • 14,103
  • 5
  • 40
  • 70
1
2 3
26 27