nedb-engine 15.15.15 → 16.17.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/nedb.linux-arm64-gnu.node +0 -0
- package/nedb.linux-arm64-musl.node +0 -0
- package/nedb.linux-x64-gnu.node +0 -0
- package/nedb.linux-x64-musl.node +0 -0
- package/nedb.win32-x64-msvc.node +0 -0
- package/nedbd-v2-linux-arm64 +0 -0
- package/nedbd-v2-linux-arm64-musl +0 -0
- package/nedbd-v2-linux-x64 +0 -0
- package/nedbd-v2-linux-x64-musl +0 -0
- package/nedbd-v2-win-x64.exe +0 -0
- package/nesql-linux-arm64 +0 -0
- package/nesql-linux-arm64-musl +0 -0
- package/nesql-linux-x64 +0 -0
- package/nesql-linux-x64-musl +0 -0
- package/nesql-win-x64.exe +0 -0
- package/package.json +1 -1
- package/nedb.darwin-arm64.node +0 -0
- package/nedb.darwin-x64.node +0 -0
- package/nedbd-v2-darwin-arm64 +0 -0
- package/nedbd-v2-darwin-x64 +0 -0
- package/nesql-darwin-arm64 +0 -0
- package/nesql-darwin-x64 +0 -0
package/README.md
CHANGED
|
@@ -127,6 +127,47 @@ traversable — and the same hash chain that keeps it honest also protects it.
|
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|
|
130
|
+
## Portals — data stays on disk, access is immediate · *new*
|
|
131
|
+
|
|
132
|
+
A database should not need RAM proportional to its history just to *open*.
|
|
133
|
+
NEDB's segment stores used to load every sealed segment's index into memory
|
|
134
|
+
at startup; the Python engine materialised its whole store. At production
|
|
135
|
+
scale that open cost gigabytes — and got processes OOM-killed before they
|
|
136
|
+
served a single query.
|
|
137
|
+
|
|
138
|
+
**Portals invert it.** The store is sharded on disk, and each shard is held
|
|
139
|
+
only as a *reference*: a small manifest (`portals.json`) names the sealed
|
|
140
|
+
segments, opening reads only the manifest, and a lookup binary-searches the
|
|
141
|
+
shard's `.idx` **on disk** and reads exactly one record — BLAKE2b-verified,
|
|
142
|
+
as every NEDB read is. The DAG and the hash chain are untouched; portals are
|
|
143
|
+
a read/reference layer over sealed segments, never a write path around the
|
|
144
|
+
log.
|
|
145
|
+
|
|
146
|
+
Three invariants govern them:
|
|
147
|
+
|
|
148
|
+
1. **The newest truth always wins** — multi-shard reads go newest-first, and
|
|
149
|
+
tombstones stop deleted keys from resurfacing out of older shards.
|
|
150
|
+
2. **Registration is crash-safe** — Write → Seal → Verify → fsync → Atomic
|
|
151
|
+
registry commit. A crash leaves the old manifest or the new one, never a
|
|
152
|
+
torn reference to an unverified shard.
|
|
153
|
+
3. **Bounded memory is a guarantee, not a target** — open cost tracks the
|
|
154
|
+
active tail, never the sealed history. Measured in the Rust engine
|
|
155
|
+
(100,000 records): legacy open 41.1 MB peak RSS with all 100,000 entries
|
|
156
|
+
indexed; portal open **19.6 MB** with only the active tail's 25,102
|
|
157
|
+
indexed. Worst-case lookup latency grows linearly in shard count
|
|
158
|
+
(≈15.5 µs per shard probed in Python), which is the baseline that says
|
|
159
|
+
when routing becomes worthwhile — measured, not guessed.
|
|
160
|
+
|
|
161
|
+
Both cores implement the same byte-identical format — the Rust engine
|
|
162
|
+
(`NEDB_PORTAL_READS=1` / `SegmentStore::open_portal_mode`) and the Python
|
|
163
|
+
engine (`nedb.portal`, including `PortalSet` newest-first multi-shard
|
|
164
|
+
reads) — proven by a cross-core fixture each core reads from the other,
|
|
165
|
+
byte for byte. Local-first by design; the registry's optional `uri`
|
|
166
|
+
locator keeps remote shards an additive step, not a redesign.
|
|
167
|
+
Full spec: [`docs/portals.md`](docs/portals.md).
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
130
171
|
## [neSQL](https://github.com/Eth-Interchained/neSQL) — the language this engine speaks
|
|
131
172
|
|
|
132
173
|
Nobody should have to learn a query language to use a database. That sentence cost
|
|
Binary file
|
|
Binary file
|
package/nedb.linux-x64-gnu.node
CHANGED
|
Binary file
|
package/nedb.linux-x64-musl.node
CHANGED
|
Binary file
|
package/nedb.win32-x64-msvc.node
CHANGED
|
Binary file
|
package/nedbd-v2-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
package/nedbd-v2-linux-x64
CHANGED
|
Binary file
|
package/nedbd-v2-linux-x64-musl
CHANGED
|
Binary file
|
package/nedbd-v2-win-x64.exe
CHANGED
|
Binary file
|
package/nesql-linux-arm64
CHANGED
|
Binary file
|
package/nesql-linux-arm64-musl
CHANGED
|
Binary file
|
package/nesql-linux-x64
CHANGED
|
Binary file
|
package/nesql-linux-x64-musl
CHANGED
|
Binary file
|
package/nesql-win-x64.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nedb-engine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.17.18",
|
|
4
4
|
"description": "NEDB \u2014 hash-chained, time-traveling, bi-temporal embedded database with Rust native core. SQL, Redis, MongoDB adapters. Causal Write Provenance. RESP2 wire protocol.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
package/nedb.darwin-arm64.node
DELETED
|
Binary file
|
package/nedb.darwin-x64.node
DELETED
|
Binary file
|
package/nedbd-v2-darwin-arm64
DELETED
|
Binary file
|
package/nedbd-v2-darwin-x64
DELETED
|
Binary file
|
package/nesql-darwin-arm64
DELETED
|
Binary file
|
package/nesql-darwin-x64
DELETED
|
Binary file
|