-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Background
The current LevelDB stack uses the deprecated levelup + leveldown + subleveldown packages. These have been superseded by classic-level (or level) with built-in .sublevel() support.
Current State
The persistent command queue (queue.mjs) uses the levelup API:
createReadStream()for iterating entries- Callback-based
batch()anddel() subleveldownfor namespace isolation
Target State
Migrate to the abstract-level API:
iterator().all()instead ofcreateReadStream()- Promise-based
batch(),del(),get(),put() - Built-in
.sublevel()instead ofsubleveldown
Notes
- The on-disk format is identical between old and new APIs (same LevelDB C++ engine). User data requires no migration.
- This should be coordinated with the corresponding migration in ODINv2 (see syncpoint/ODINv2 issue).
- Tests currently use
memdown+levelup+subleveldown— migrate tomemory-level.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels