-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement db#clear across the board #79
Labels
enhancement
New feature or request
Comments
Very nice. I especially like the subleveldown feature, like emptying a bucket of stuff. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Because |
vweevers
added a commit
to Level/levelup
that referenced
this issue
Sep 7, 2019
vweevers
added a commit
to Level/levelup
that referenced
this issue
Sep 8, 2019
* Add clear() method to delete all entries or a range * Upgrade deferred-leveldown from ~5.1.0 to ~5.2.0 * Upgrade encoding-down devDependency from ^6.0.0 to ^6.2.0 * Add link to Level/community#79
vweevers
added a commit
to Level/mem
that referenced
this issue
Sep 8, 2019
vweevers
added a commit
to Level/rocksdb
that referenced
this issue
Sep 20, 2019
vweevers
added a commit
to Level/level
that referenced
this issue
Oct 13, 2019
vweevers
added a commit
to Level/level
that referenced
this issue
Apr 17, 2021
This was referenced Apr 19, 2021
This was referenced Apr 28, 2021
This was referenced Sep 12, 2021
vweevers
added a commit
to Level/memdown
that referenced
this issue
Oct 1, 2021
vweevers
added a commit
to Level/multileveldown
that referenced
this issue
Oct 1, 2021
This was referenced Oct 1, 2021
vweevers
added a commit
to Level/memdown
that referenced
this issue
Oct 2, 2021
Repository owner
moved this from In Progress
to Done
in Level
Nov 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background: Level/abstract-leveldown#24 (comment).
Phase 1: get it working
clear()
deletes entries with an iterator. It can take range options, e.g.clear({ gt: 'foo' })
and should serialize them6.1.0
encoding-down
can callthis.db.clear()
and should encode the range options6.2.0
leveldown
5.2.0
deferred-leveldown
should defer it5.2.0
levelup
4.2.0
memdown
level-packager
(bump dependencies to prevent dedupe)5.0.3
level-js
level
level-mem
(bump dependencies to prevent dedupe)5.0.1
rocksdb
level-rocksdb
(bump dependencies to prevent dedupe)subleveldown
uses the range options to implementclear
on a sublevelmultileveldown
(and by extension,level-party
)(slated to be deprecated)leveldown-hyper
andlevel-hyper
Phase 2: optimize
memdown
: Optimizedb.clear()
memdown#213leveldown
can implement it natively (Optimize _clear() leveldown#680)rocksdb
: Add db.getMany(keys) rocksdb#184 (5.2.0)level-js
can call eitherIDBObjectStore#clear()
orIDBObjectStore#delete(range)
On the side
Use it in(old)mafintosh/level-temp
Add notice to(old)Raynos/level-delete-range
Send PR tonoffle/kappa-view-level
for itsclearIndex()
The text was updated successfully, but these errors were encountered: