nedb-engine 20.21.22 → 20.23.24
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 +6 -2
- package/nedb.darwin-arm64.node +0 -0
- package/nedb.darwin-x64.node +0 -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-darwin-arm64 +0 -0
- package/nedbd-v2-darwin-x64 +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-darwin-arm64 +0 -0
- package/nesql-darwin-x64 +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/README.md
CHANGED
|
@@ -129,9 +129,13 @@ traversable — and the same hash chain that keeps it honest also protects it.
|
|
|
129
129
|
|
|
130
130
|
## Boot hydration
|
|
131
131
|
|
|
132
|
-
Set `NITRO_NEDB_HYDRATION=true` in the process that opens the database. On
|
|
132
|
+
Set `NITRO_NEDB_HYDRATION=true` in the process that opens the database. On the first exclusive open of a durable native store, the engine loads the live records and current IDs into memory, then writes `checkpoints/native-live-v1.bin` beside the database's `MANIFEST`. Allow time for this first pass and size RAM for the live dataset.
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
On subsequent opens, the native Python binding and HTTP daemon read the checkpoint and start serving while a background worker warms the current ID index. Current ID pointers still determine which version is visible. This includes writes and deletions made since the checkpoint. A query that needs an index the worker is still warming can incur disk reads.
|
|
135
|
+
|
|
136
|
+
After hydration the engine replaces the same checkpoint atomically. Each store retains one completed checkpoint. With a managed native Python handle, call `core.request_hydration_checkpoint()` to queue a fresh checkpoint at closing time. A true return value means the worker accepted the request. The engine logs completion after replacing the file. Encrypted stores encrypt the checkpoint with the store key. An unreadable or damaged checkpoint triggers a rebuild from the store. Keep the database files when backing up or moving the store, including the DAG and its indexes.
|
|
137
|
+
|
|
138
|
+
The flag defaults to off. The separate pure-Python engine uses its existing AOF and portal checkpoint formats. With hydration enabled, a portal open loads its sealed checkpoint into the in-memory version store before replaying the tail.
|
|
135
139
|
|
|
136
140
|
## Portals — data stays on disk, access is immediate · *new*
|
|
137
141
|
|
|
Binary file
|
|
Binary file
|
|
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
|
|
Binary file
|
|
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
|
|
Binary file
|
package/nesql-darwin-x64
ADDED
|
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": "20.
|
|
3
|
+
"version": "20.23.24",
|
|
4
4
|
"description": "NEDB — hash-chained, time-traveling, bi-temporal embedded database with Rust native core. SQL, Redis, MongoDB adapters. Causal Write Provenance. RESP2 wire protocol. Opt-in boot hydration (NITRO_NEDB_HYDRATION=true) loads the live dataset into RAM at open for millisecond reads.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|