DataReelDataReelC++ Toolkit Documentation

DataReel 7.3 Beta Release Notes

Contents

What changed
Speed
How it was tested

DataReel 7.3.1 fixes the problems a security scan found; see RELEASE_NOTES_7.3.1.txt.

DataReel 7.3 is a beta release. DataReel 7.4.1 (11/20/2026) is now the stable release, and DataReel 6.4.2 the legacy release (bug fixes and security updates only); please report problems through https://datareel.com/contact.php.

7.3 makes reads and key-order scans faster. Everything in 7.2 (the journal, the page cache, positional I/O, the hashed B-tree cache) is unchanged; see RELEASE_NOTES_7.2.txt.

The library version is 7.3 (version.txt, DATAREEL_VERSION_STRING in gxdlcode.h, libdatareel.so.7.3). The shared library soname (libdatareel.so.7) and the database file format are unchanged, and find_package(DataReel 7) finds 7.3. Programs built against 7.2 must be rebuilt (gxdPageCache and gxBtree have new members).

What changed

1. Memory-mapped reads (gxdpcache.h, gxdfptr.h)

   The page cache reads clean data that is not in a cached page
   straight from a read-only memory map of the file (mmap() on Linux,
   CreateFileMapping()/MapViewOfFile() on Windows). Reading a record
   costs no system call and no page copy. The map is renewed as the
   file grows. EnablePageCache(bytes, use_map = 1); pass 0 to read
   pages with pread()/ReadFile() as in 7.2. New: gxdFPTRMap(),
   gxdFPTRUnmap(). Programs that measure their memory will see the
   file pages they read in their resident size: that is the shared
   operating system cache, not memory the program allocated.

2. FindNext() in one compare (gxbtree.h)

   When FindNext() is given the key it returned last and the index
   file is unchanged, the next key comes from the same leaf with one
   compare and a copy, without a binary search or a walk from the
   root.

3. Journal checksum in four lanes (gxdjrnl.cpp)

   The page checksum used to find torn journal writes runs about four
   times faster. The journal file format is unchanged.

Speed

1,000,000 records, 16-byte keys, 100-byte values, batches of 1000, 64 MB of cache, RHEL 10.2, SATA SSD, XFS. Ops/s, median of 3 runs, DataReel with the journal against a typical embedded SQL database in WAL mode ("SQL DB"):

                          7.2        7.3     SQL DB
 insert in key order    663,541    621,995    625,131
 insert in random order 171,869    167,241     79,408
 random read            268,542    424,557    235,514
 key-order scan (1)     652,149  3,278,787  6,766,442
 key-order scan (2)          -   7,648,578  7,172,378
 random update          127,558    127,502     94,242
 random delete          107,841    101,968    108,082
 durable insert           1,003      1,253      1,496

 (1) records inserted in random order: DataReel's index points into
     a separate data file, which the scan reads in record order
 (2) records inserted in key order

A scan of records inserted in random order stays behind the SQL database, which stores rows inside its B-tree. Closing that gap needs a clustered index (records stored in the index leaves), which would be a new file type; it is not part of 7.3.

How it was tested