DataReelDataReelC++ Toolkit Documentation

DataReel 7.4.1 Release Notes

Contents

New in 7.4.1 (11/20/2026)
Highlights of 7.4
Phase a (11/12/2026): vector index file, exact search
Phase b (11/12/2026): hnsw graph search, merge, repair
Phase c (11/12/2026): float16 and int8 vectors, vector members
Phase d (11/14/2026): speed, growth, sets, vector search service, vectors under gxrepl
Gxrepl fixes from the 11/12 stall (11/13/2026)
Beta 3 (11/14/2026)
Gxrepl: a writer's open or gap record always gets its verify (11/14/2026)
License (11/12/2026)
FIXES AFTER BETA 3 (11/15/2026, docs-7.4)
Beta 4 (11/16/2026)
ONE FILE LAYOUT ON EVERY PLATFORM (11/15/2026, beta 5)
New in beta 5 (11/16/2026)
New in 7.4 (after beta 5)
Upgrading to 7.4 beta 5
Planned for the next release (7.5)

DataReel 7.4 beta 3 (tag 7.4-beta3, 11/14/2026) follows beta 2 with the replication fixes and the security scan below (BETA 3). Beta 2:

DataReel 7.4 beta 2 (tag 7.4-beta2, 11/14/2026): the OODB with AI extensions. It follows the 11/12/2026 7.4-beta preview (tag 7.4-beta, 171a3f2: vector phases A and B) and adds vector phases C and D (below), the gxrepl fixes F4, F6 and F7, the DataReel 7.3.2 replication fixes and the later ones of rel-7.3.2-next3 (the seal per folder, a stream naming new files verified again, promote-check reading each unit under a shared apply lock, GXREPL_TORN_LOCK_WAIT 15 s), and the gxrepl per-object derived apply (derived_apply = incremental, with object notes and index stamps; off by default: rebuild stays the default and the ship log is unchanged while object notes are off; see utils/gxrepl/DERIVED_APPLY_STATUS.md). derived_apply = incremental is not yet for production use; fixes land in the next 7.4 build. The file formats of 7.3 are unchanged, and the vector index is a new file type built on them.

New in 7.4.1 (11/20/2026)

Highlights of 7.4

Phase a (11/12/2026): vector index file, exact search

New headers gxvindex.h (gxVectorIndex, gxvFilter, gxvResult) and gxvkern.h (distance kernels); sources src/gxvindex.cpp and src/gxvkern.cpp; test program utils/vix_test.

1. gxVectorIndex keeps vectors in a ".vix" file, which is an ordinary

   gxDatabase file: a 256-byte static area (magic "GXVIX74", version,
   dimension, element type, metric, M / M0, ef_construction, node
   size, entry node, counts and a 63-character spec) and one
   fixed-size block per node (64-bit object id, flags, level, four
   32-bit tags, upper-level block, neighbor slots, vector). The graph
   of phase B uses the neighbor slots already reserved in every node,
   so phase A files open unchanged later.

2. Insert / Update / Delete (a tombstone) / Get / Contains, each a few

   writes to the file. Attach the index to a gxdJournal with
   j.Attach(vix.Database()) and a commit carries an object, its B-tree
   keys and its vector together; Rollback() then Reload().

3. Exact(query, k, results, filter): the k nearest live nodes, sorted

   by distance then id. gxvFilter tests tag ranges (equality is a
   range of one, so session, kind and a date upper bound are all
   tags) and an optional accept callback. (Search() was Exact() until
   phase B.)

4. Metrics: squared L2, cosine (vectors stored unit length, distance

   1 - cosine) and inner product (minus the dot product). Float32
   only in phase A; float16 and int8 come in phase C. Dimension 1 to
   4096. NaN and infinite values are refused.

5. Spec guard: Create(..., spec) stores a text such as

   "anomaly/shock/v1/<builder hash>"; Open(name, mode, spec) refuses a
   file with another spec, so vectors from a different feature
   builder never mix in one index.

6. Concurrency: the ids, tags and vectors stay in memory while the

   index is open, so searches never read the file. Searches share a
   lock; writers take it exclusively and go ahead of new searches
   (writer preference), so steady searching never stalls inserts.

7. Kernels: 8 partial sums in a fixed order, the same on the SSE2

   path and the plain C path (bit-identical results); plain C-style
   functions so the 6.x version shares them word for word.

8. Verify(resolve, data, bad, report) compares the file with memory

   and asks the caller whether each node's object still exists.

Tests (vix_test, 32-bit and 64-bit database engines): kernels against the written-out order; Exact against a brute-force reference for all three metrics with tag, range and callback filters and equal-distance order; create / insert / update / delete / reinsert / reopen / read only / spec mismatch / bad files; journal commit and rollback; three reader threads searching during 20,000 inserts and deletes (clean under ThreadSanitizer); 45 kill -9 rounds during committed batches: every round recovered exactly the committed batches, never a partial one.

Measured (4-core VM, dimension 79, k = 20): insert about 5 us; exact search of 30,000 vectors 0.9 ms p50, 150,000 6.7 ms, 1,000,000 55 ms (memory bound); opening 1,000,000 nodes 2.3 s. Sub-millisecond search over large sets is phase B's graph.

Phase b (11/12/2026): hnsw graph search, merge, repair

1. Search(query, k, results, ef, filter) walks an HNSW graph kept in

   the neighbor slots of each node plus an upper-level block for the
   nodes above level 0. A node's level is an integer hash of its id,
   so the same inserts in the same order build the same graph on every
   node. Up to 4096 nodes, and for filters (or tombstones) that leave
   fewer than about 5% of the nodes, Search() is Exact().

2. Filtered graph search: every node is a stepping stone, only live

   nodes that pass the filter are results.

3. Live inserts: Insert() works out its links under the shared lock

   (searches keep running), writes the file, then takes the exclusive
   lock only to link the node (microseconds). Per-node arrays grow in
   fixed chunks, so growing never copies what is there.

4. Update() with the same vector rewrites the tags in place; with a new

   vector it deletes the node and inserts a new one in one step.
   Deleted nodes stay in the graph until Repair().

5. Repair() rebuilds the graph from the live nodes and writes it.

   Merge(out, inputs, spec) builds one index from many files (the day
   files of a month): same dimension, metric and spec, ids unique
   across them, tombstones left out, every link written once.

6. Phase A files open unchanged: the graph is built in memory at Open()

   (GraphSaved() = 0) and Repair() saves it. A damaged link in a saved
   graph is handled the same way. Verify() also checks every link
   against the file.

7. Fix: the 256-byte header was written at FAU 256 (gxDatabase

   StaticArea() returns the static area's size, not its address), so
   the first node block overlapped header bytes 96-255. It now sits at
   FileHeaderSize(). Phase A was never installed, so no file has the
   old layout.

Tests (vix_test, 32-bit and 64-bit database engines, 11,897 checks): recall against Exact for all three metrics (20,000 clustered vectors: 1.000 / 1.000 / 0.996 at ef 64), filtered recall, a selective filter equal to Exact, the graph read back from the file gives the same answers, the same inserts build the same graph, deletes (no deleted node returned) and updates, Repair(), a phase A file and a damaged link rebuilt and repaired, Merge() of three day files (and its refusals), 45 kill -9 rounds on each engine (all recovered exactly, Verify() clean including every link), three searchers during 20,000 inserts and deletes, clean under ThreadSanitizer.

Gate (vix_test --gate 1000000, 4-core VM, dimension 96, M 16, ef_construction 200, k 20; one thread inserting in journal batches of 100 while three threads search):

Build fix (11/12/2026, found on RHEL 10): GCC fuses a*b + c into one multiply-add (FMA) instruction on x86-64-v3, RHEL 10's baseline, which changed the last bit of some distances and failed vix_test's bit-exact kernel check. gxvkern.cpp and vix_test.cpp now turn contraction off with a pragma, and the CMake files also build them with -ffp-contract=off. The crash test now waits until the child has created and synced the file before it starts the kill timer, so a slow machine no longer kills the child before its first commit.

Phase c (11/12/2026): float16 and int8 vectors, vector members

1. Element types gxvFLOAT16 and gxvINT8 (types 2 and 3 in the header).

   A node stores its vector as a code: float32 4 * dim bytes; float16
   2 * dim bytes (IEEE binary16, round to nearest even, subnormals
   kept); int8 dim signed bytes and a float32 scale per vector
   (s = max|v| / 127, q = clamp(lrintf(v / s), -127, 127), each value
   within s / 2). Node size = 48 + 8 * M0 + the code bytes; the header
   check follows the type. gxvFLOAT32 files are byte-identical to
   before (no version change); a library that does not know a type
   refuses it with gxv_UNSUPPORTED.

2. gxvCOSINE vectors are normalized, then stored. Every distance, in

   inserts as well as searches, uses the decoded vector, so Insert(),
   Repair() and Merge() build the same graph (vix_test checks it for
   every type and metric). Queries are not rounded. Get() returns the
   decoded vector; Update() compares stored codes.

3. float16 values above 65504 in size are refused with the new error

   gxv_OUT_OF_RANGE (added at the end of gxvError).

4. gxvkern.h: gxv_f16_from_float(), gxv_float_from_f16(),

   gxv_i8_encode(), gxv_i8_decode() (plain C, for the 6.x version).

5. Vector members: a record carries its vector in the index's stored

   form. MakeMember() returns MemberSize() bytes: a 12-byte head
   ("GXVM", element type, dimension, CRC-32 of the spec) and the code.
   Store it as an InfoHog member or a fixed char field of a POD
   record. InsertMember() / UpdateMember() put the code in the index
   unchanged, so record and node hold the same bytes, and refuse a
   member of another type or dimension (gxv_BAD_ARG) or spec
   (gxv_SPEC_MISMATCH). MemberVector() decodes one; MemberMatches()
   compares a record's member with its node (for a Verify() resolver).
   Rename(old_id, new_id) follows a record that moved: an InfoHog
   record that grows gets a new address. Write the record and the index
   in one gxdJournal transaction (attach the data file, its index files
   and the .vix): a crash leaves both or neither.

Tests (vix_test): search, graph, reopen, rebuild, delete, Repair, Merge and crash tests for all three types; all 63,488 finite float16 values converted both ways, rounding ties, subnormals and the 65504 limit; the int8 error bound; InfoHog records with a vector member and their index under one journal (changes, moves, rollback, 10 kill -9 rounds per type) and a POD record with a vector field. 53,469 checks. Recall at ef 200 against the exact answer on the float32 vectors (20,000 clustered points, dimension 32): float16 0.994 to 1.000; int8 0.980 (L2), 0.985 (inner product) and 0.947 (cosine: unit vectors in tight clusters, where neighbors differ by less than a quantization step).

Gate (vix_test --gate 1000000 --dim 96 --type ..., the same set and machine as phase B; the build times are rough, other jobs shared the machine):

  type   build   file    memory  quiet ef 64          vs float32  live (1 writer, 3 searchers)
                                 recall  p50   p99    exact ef 64 inserts/s  p50    p99
  f32    923 s   697 MB  779 MB  0.987  0.16  0.34    -           990        0.19   0.50
  f16    1308 s  515 MB  592 MB  0.987  0.35  0.67    0.986       488        0.42   1.11
  i8     753 s   427 MB  506 MB  0.976  0.16  0.34    0.955       1,091      0.17   0.41

  (times in ms; ef 128 recall 0.999 for all three; against float32
  exact at ef 200: f16 0.999, i8 0.973)

Memory and file size include the graph (M0 = 32 links per node), which is now the larger part: the vectors take 384 / 192 / 100 bytes a node. float16 searches take about twice as long because each value is converted with a function call; a faster float16 decode (proved to give the same bits) is a possible later step. int8 is as fast as float32 and the smallest; use float32 or float16 where recall must stay above 0.98.

Phase d (11/14/2026): speed, growth, sets, vector search service, vectors under gxrepl

1. float16 speed: a 65,536-entry table decodes a half (proved against

   the scalar conversion for every one of the 65,536 bit patterns), and
   gxv_l2sq_f16() / gxv_dot_f16() decode 8 values at a time into the
   same 8-lane sums as the float32 kernels, so the distances are the
   same bits as decode-then-kernel (checked for dimensions 1 to 96 and
   4096). At 200,000 x 96 a float16 search now takes about as long as a
   float32 one (p50 0.146 ms against 0.137 ms; before: about twice as
   long). Files and results are unchanged.

2. int8 cosine: the decoded vector is normalized again, so cosine

   distances use unit vectors. Known limit, stated plainly: at
   1,000,000 x 96 the int8 cosine recall against float32 exact is
   0.9505 at ef 64 (0.972 at ef 200), just over the 0.95 bar. For
   cosine at that scale use float16 (0.986) or search with ef 128 or
   more.

3. Format fields for growth (static area offsets 140-255, zero in the

   files of phases A-C, which open unchanged and search the same: the
   test opens files made by the phase C library, 32-bit and 64-bit):
   features_required (a bit this library does not know makes the file
   gxv_UNSUPPORTED), features_optional (bit 0 tag ranges kept, bit 1
   derived from record members), codec (0; 1 is kept for product
   quantization), graph layout (0), partition id and count, tag_min[4]
   and tag_max[4] (the range of each tag over every node inserted:
   written with the counts in the caller's transaction, never narrowed
   by Delete(), worked out again by Repair() and Merge(); an empty index
   holds 0xFFFFFFFF..0), and 56 reserved bytes (written as zero, ignored
   when read). TagRange(), TagRangeExcludes(), SetPartition(),
   SetFromMembers(). New error gxv_INDEX_FULL at 4,294,967,280 nodes.

4. gxVectorSet (gxvset.h): many .vix files searched as one: day files,

   partitions, or both, listed in a plain-text manifest
   "<name>.vixset" (set, version, spec, dim, element, metric, codec,
   and per file its relative path, node counts, the range of tag 2 (the
   day, yyyymmdd) and a CRC-32 of the header fields that never change).
   Unknown lines are errors, paths are relative with no "..", writes go
   to a temporary file and are renamed. Files open lazily (read-only, an
   LRU of max_open), a search with a day range skips the files outside
   it unopened, searches run on several threads, and the results are
   sorted by distance, then file, then id: the same for any number of
   threads, and the order of a per-day merge that keeps the earlier day
   on a tie. The live day: a file that changed since it was read is read
   again (a file replaced by a rename is opened again), or a writer puts
   its own open index in the set with AttachOpen(). A listed file that
   is missing (an archived day) is skipped and counted, unless strict.
   gxVectorSet::OpenFile() treats one .vix as a set of one.

5. The object server answers vector searches (gxdbobject.h): a [db NAME]

   with "vectors = <.vixset or .vix>" takes op 7 VECTOR_SEARCH (k up to
   1000, ef up to 4096, a tag filter, a day range, strict) and op 8
   VECTOR_INFO on its channels, read-only. The reply starts with the
   request version, and names the result files by their paths relative
   to the manifest. vector_threads (2) and vector_max_concurrent (4: one
   more waits up to 5 s, then is answered "busy"). Vectors inside a set
   the server copies are searched under the set's apply lock.
   object_client --vinfo and --vsearch K show the use.

6. Vectors under gxrepl: a vector index can be derived from the vector

   members of its data file's records (gxvmember.h), so a replicated
   copy never needs the .vix bytes. The set names it "derived"; the
   writer leaves it out of its ship log (gxdShipLog::SetExclude), the
   file sync never sends it, and the copy rebuilds it with
   utils/vix_rebuild as its derived_rebuild:

     derived = vectors.vix
     derived_rebuild = vix_rebuild --data {dir}/data.gxd
         --index {dir}/vectors.vix --member infohog:1 --tags -,-,infohog:2,-
         --dim 96 --spec news/v1 --stamp-dir {dir} --lsn {lsn}

   The node id is the record's address; a record without a valid
   member is not in the index; the rebuild goes in ascending address
   order, so two rebuilds of the same data are the same file byte for
   byte, and it marks the file derived from members. While the copy's
   index is behind, "gxrepl torn" warns (INDEXES), never TORN.
   vix_rebuild --digest prints a logical digest (the live nodes in id
   order: id, stored code, tags; equal for a primary's index built in
   commit order and a copy's rebuild) or, with --digest-kind bytes, a
   file digest (equal for two rebuilds). The "gxvmember" extractor
   (gxrextract.h) does the same object by object for the per-object
   derived apply, which comes with that work.

Growth and its limits (facts, for planning):

Tests: vix_test (32-bit and 64-bit engines, crash rounds on) adds the format fields, the phase C files, gxVectorSet (recall over 5 day files against brute force, LRU 2 of 5, 1, 3 and 4 threads equal, the live file read-only and attached, missing and replaced files, bad manifests, paths with spaces), the gxvmember extractor and the rebuild from POD and real InfoHog records (logical equal to the index, two rebuilds the same bytes). The gxrepl suite adds the vector search service (remote answers equal local ones, bad requests refused, missing files, the busy cap, a copy searched under its apply lock) and a derived vector index (no .vix in the ship log, torn never TORN, the copy's rebuild logical equal to the primary's index after adds, updates and deletes with reused blocks, and byte equal to a rebuild of the primary's data).

Gxrepl fixes from the 11/12 stall (11/13/2026)

Beta 3 (11/14/2026)

Gxrepl: a writer's open or gap record always gets its verify (11/14/2026)

The same fix as DataReel 7.3.4 (branch gxrepl-drain-verify).

License (11/12/2026)

Every source header now says LGPL version 3 or later, matching the LICENSE file (the headers said 2.1 or later), and points to https://www.gnu.org/licenses/ instead of the old FSF postal address.

FIXES AFTER BETA 3 (11/15/2026, docs-7.4)

Beta 4 (11/16/2026)

Replication (gxrepl) on an incremental set (derived_apply = incremental), the hardening items, and the review fixes:

ONE FILE LAYOUT ON EVERY PLATFORM (11/15/2026, beta 5)

Before 7.4 beta 5 the database file headers held gxUINT32/gxINT32 fields (unsigned long, long), 8 bytes on 64-bit Linux and 4 on 64-bit Windows and in 32-bit builds, so .gxd, .btx and .vix files (and record addresses) did not move between them. Now:

Still per platform: the application's own record and key types. A native gx type (gxUINT32, gxINT32) or, in a 32-bit FAU build, a FAU in a record or key keeps its platform's size; use fixed-width types (uint32_t, int64_t) in records that move between platforms. The gxStream and object server message framing is one form on every platform too (see NEW IN BETA 5).

New in beta 5 (11/16/2026)

New in 7.4 (after beta 5)

Upgrading to 7.4 beta 5

Planned for the next release (7.5)

These are planned features, not part of 7.4: