Fabrice Desré wrote:
On Sat, 31 Jan 2015 20:05:46 +0800, Philip Chee wrote:

On 31/01/2015 14:03, Vladan Djeric wrote:
We do need a performant key-value store implementation. This has been
discussed before and various people have come up with proposals (myself
included), but no one has had the time & focus to see it through to the
end :/
I suspect part of the problem is that different use cases (IndexedDB
re-implementation, prefs, simple storage, etc) have different
requirements so no single solution satisfies everyone. I doubt I'll
have time in Q1 but this is definitely something I want to do, or help
out with, if some one else would like to step up.

Are we going to roll our own or use an existing OSS implementation like
SQLite4 or LMDB?

It was decided 2,5 years ago to not use LevelDB (https://
bugzilla.mozilla.org/show_bug.cgi?id=leveldb). Maybe it's time to revisit
this decision?

Using LevelDB for anything would be a serious mistake. It is broken by design and you *will* lose data.

https://www.usenix.org/conference/osdi14/technical-sessions/presentation/pillai

SQLite4 is looking like it will never be anything more than a research vehicle.

http://osdir.com/ml/sqlite-users/2014-12/msg00304.html

People may say I'm biased since I'm the author of LMDB but I have only ever posted objective, reproducible comparisons of LMDB to other alternatives. http://symas.com/mdb/#bench

If your typical record sizes are smaller than 1KB and you have more writes than reads, LMDB may be a poor choice. If you need to support large DBs on 32-bit processors LMDB will be a bad choice.

If you have heavy reads, LMDB may be an ideal choice. Nothing else matches it for small footprint, nothing else matches it for reliability, and nothing else matches it for read performance.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to