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 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 an exclusive durable Rust open, the engine loads current document IDs and live records into RAM before open returns. Embedded clients and the HTTP daemon use this same open path. Writes refresh the resident state and deletes remove the live entry. The DAG retains the version history on disk.
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
- In the Python engine, ordinary replay already builds resident state. A portal open with hydration enabled loads the sealed checkpoint into the in-memory version store before replaying the tail. Size memory for the live dataset and allow time at startup to read it. The flag defaults to off.
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/nesql-linux-arm64 CHANGED
Binary file
Binary file
package/nesql-linux-x64 CHANGED
Binary file
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.21.22",
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": {