Level / abstract-level

Abstract class for a lexicographically sorted key-value database.
MIT License
128 stars 8 forks source link

Tracking issue: planned breaking changes in v2 #47

Closed vweevers closed 1 year ago

vweevers commented 2 years ago

In order of significance:

These won't necessarily land in a single major version. I wanted a place to list them and allow people to object.

vweevers commented 2 years ago

I did a quick test on memory-level, replacing _put(key, value, options, callback) with async _put(key, value, options). As a result, await db.put(key, value) is 2x faster!

$ level-bench plot put
benchmark put on memory-level@1.0.0 win32 x64
node@16.9.1 n=1M concurrency=4 valueSize=100B keys=random values=random

1  memory-level#v2    69565 ops/s ±8.83%  fastest
2  memory-level#main  33750 ops/s ±8.07%  +51.14%
vweevers commented 2 years ago

Removed a bunch of items from the list above, to keep the release manageable (see v2/UPGRADING.md for current content).

vweevers commented 1 year ago

Done; remaining items can go into a future release.