4

I am writing a small NodeJS app, where I need a DB of some sort. LevelDB (LevelUP) and NeDB seams to be the most popular, so which to choose...

According to Wikipedia on 18th Nov. 2016, LevelDB often corrupt data.

LevelDB is widely noted for being unreliable and databases it manages are prone to corruption.[13][14][15][16][17][18][19][20] Academic studies of past versions of LevelDB[21][22] have found that, under some file systems, the data stored in those versions of LevelDB might become inconsistent after a system crash or power failure. LevelDB corruption is so commonplace that corruption detection has to be built in to applications that use it.[23]

Question

Is this a thing from the past and is not an issue anymore?

Jasmine Lognnes
  • 6,597
  • 9
  • 38
  • 58
  • I have used leveldb on windows quite extensively and never experienced any issues... – ren Nov 18 '16 at 22:37
  • If you want resilience, SQLite is the most resilient local database, it is not 100% JS, but native implementations exist and are well maintained on all platforms. – Eric Grange Aug 24 '18 at 08:29

1 Answers1

5

LevelDB is still notorious for unreliability and prone to corruption. There are quite some issues still which need to be addressed.

NeDB seems like a better option IMO.

EDIT: Haven't used level DB in quite some while since writing this answer.

Divyanshu Maithani
  • 13,908
  • 2
  • 36
  • 47