@push.rocks/smartdb 4.0.1 → 4.0.2
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.
|
Binary file
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@push.rocks/smartdb',
|
|
6
|
-
version: '4.0.
|
|
6
|
+
version: '4.0.2',
|
|
7
7
|
description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxxQkFBcUI7SUFDM0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHFIQUFxSDtDQUNuSSxDQUFBIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartdb",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.",
|
|
6
6
|
"exports": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@git.zone/tsbuild": "^4.4.2",
|
|
18
18
|
"@git.zone/tsbundle": "^2.11.4",
|
|
19
19
|
"@git.zone/tsrun": "^2.0.6",
|
|
20
|
-
"@git.zone/tsrust": "^1.
|
|
20
|
+
"@git.zone/tsrust": "^1.8.0",
|
|
21
21
|
"@git.zone/tstest": "^4.0.0",
|
|
22
22
|
"@types/node": "26.2.0",
|
|
23
23
|
"mongodb": "^7.5.0"
|
package/readme.hints.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# smartdb hints
|
|
2
2
|
|
|
3
|
+
## Multikey Query Planning
|
|
4
|
+
|
|
5
|
+
- SmartDB detects when an indexed path resolves through an array and keeps that state on the in-memory index until a complete rebuild.
|
|
6
|
+
- Array-backed indexes are maintained for catalog and constraint compatibility but are not used to narrow queries; reads fall back to authoritative scans until full MongoDB multikey key expansion is implemented.
|
|
7
|
+
- A scalar-to-multikey transition invalidates an in-progress paged index read with a write conflict; retrying starts with the authoritative scan path instead of returning a partial result.
|
|
8
|
+
- Index data and multikey state are rebuilt from authoritative documents at startup, so this behavior requires no persisted-data migration.
|
|
9
|
+
|
|
3
10
|
## No-Op Write Detection (2.14.0)
|
|
4
11
|
|
|
5
12
|
- `update`/`findAndModify` post-images that equal the stored document skip storage, WAL, index staging, and oplog entirely; volatile-only rewrites (top-level `_updatedAt` differs, everything else equal) are skipped the same way and keep the stored `_updatedAt`. Both report `matched=1, modified=0`.
|
package/ts/00_commitinfo_data.ts
CHANGED