@kedem/okdb 3.1.2 → 3.1.4
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to `@kedem/okdb` are documented here. Format loosely follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [SemVer](https://semver.org/).
|
|
5
5
|
Dates are release dates.
|
|
6
6
|
|
|
7
|
+
## [3.1.4] - 2026-11-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **A put on a type with many indexes no longer pays for the indexes it cannot change.** Every write evaluated every index of its
|
|
12
|
+
type, copying the whole document once per indexed field, and every transaction copied all of the type's index definitions to
|
|
13
|
+
check them. A write now skips an index whose fields are absent from both the old and the new document (when the result is
|
|
14
|
+
provably unchanged: a sparse index, or a plain one when both documents exist), field paths are read without copying the
|
|
15
|
+
document, and the per-transaction check compares the definitions in place. Index contents, unique checks and errors are
|
|
16
|
+
unchanged. 138 indexes on a type (mostly sparse, per-facet): ~600 -> ~130 µs per small commit, about the cost with 5 indexes.
|
|
17
|
+
- **`[...env.getKeys(type)]` works in the published package.** The release obfuscator renamed variables that ordered-binary's
|
|
18
|
+
string decoder reads by name, so every JS key decode threw `ReferenceError: position is not defined` (3.0.0-3.1.3; the
|
|
19
|
+
unobfuscated build was fine). The names are kept, and the release smoke test now reads keys with `getKeys`.
|
|
20
|
+
|
|
21
|
+
## [3.1.3] - 2026-10-28
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **A full indexed `db.query` scan is no longer ~45% slower than an unindexed one.** An indexed query is a lazy pinned scan that
|
|
26
|
+
resumes each chunk by result offset, and every skipped row was read, decompressed and key-decoded before being discarded, so
|
|
27
|
+
a scan did quadratic work in chunks. The offset rows are now dropped before hydration when the query has no filter and no
|
|
28
|
+
start/end-key bound (filtered queries are unchanged). On 3,709 ~11 KB documents: ~440 ms -> ~300 ms CPU, equal to the
|
|
29
|
+
unindexed scan.
|
|
30
|
+
|
|
7
31
|
## [3.1.2] - 2026-10-26
|
|
8
32
|
|
|
9
33
|
### Fixed
|
|
Binary file
|