nedb icon indicating copy to clipboard operation
nedb copied to clipboard

Add link to "official" fork

Open RollingHog opened this issue 3 years ago • 8 comments

Since this won't be supported anymore, maybe owner should add a link to what would be recognized as a "official" and stable fork of this repo, like https://github.com/seald/nedb/ ?

RollingHog avatar Jul 31 '21 11:07 RollingHog

Another good link to be added is https://github.com/bajankristof/nedb-promises#readme , since callbacks are you know, a little uncomfortable.

RollingHog avatar Jul 31 '21 11:07 RollingHog

This might also be worth considering: https://github.com/nedbhq/nedb-core

Courtesy of https://andremiras.github.io/gitpop3/

chmac avatar Aug 09 '21 13:08 chmac

Also perhaps https://github.com/typicode/lowdb deserves a mention as a solid alternative

chmac avatar Aug 09 '21 13:08 chmac

@RollingHog We released a version of our fork which removes the use of async in favor of a Promise-based executor, and which exposes a Promise-based interface:

https://github.com/seald/nedb/blob/master/CHANGELOG.md#300---2022-03-16

tex0l avatar May 13 '22 16:05 tex0l

a Promise-based executor

@tex0l why did you choose the promise-based executor?

amirouche avatar May 15 '22 11:05 amirouche

a Promise-based executor

@tex0l why did you choose the promise-based executor?

Because doing it without async but with the built-in ES6 Promise makes it dependency-free.

tex0l avatar May 15 '22 12:05 tex0l

With Chez and Gambit callback-based code is ten times faster, than colored async code.

amirouche avatar May 16 '22 13:05 amirouche

At Seald (for which we maintain this fork), we don't observe any performance issue with our implementation. If you want to do a benchmark between the historical version of nedb & our latest version with async code, feel free. I don't think there is a 10x difference.

Even if there is on some environments, as the whole JS ecosystem moves towards async code, I don't think going back to callbacks is a good idea. The subsequent versions of node.js & browsers will catch up the difference if there's any.

tex0l avatar May 18 '22 09:05 tex0l