Repository navigation
Conversation
#137 rewrote di.torq.proc.wdb (0.2.0 -> 0.3.0): all four legacy writedown modes, the end-of-day merge, and proctypes sort/sortworker served by the same module. It added di.merge as a hard dependency, so the app manifest needs it for depcheck to validate the subtree. No settings change is needed. Every new 0.3.0 key is defaulted, and the defaults suit this stack: mode=saveandsort sorts in-process (no sort process to add), partitiontype=date, and hdbtypes/rdbtypes/idbtypes default to the proctypes already in process.csv. wdb1.toml's existing four settings remain valid. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
di.torq.proc.wdb 0.3.0 restores legacy TorQ's `quote`trade!10000 50000 default
for numtab (0.2.0 defaulted it to an empty dict), and maxrows prefers numtab
over numrows. The existing numrows = 500 was therefore dead for the only two
tables this demo feeds: nothing was written intraday, because trade needs
~85 minutes at the feed's rate to reach 50000 rows.
Verified against main (wdb 0.3.0): quote now flushes at 563 and 540 rows, two
saves, 1103 rows on disk in wdb/<date>/quote enumerated against the hdb sym file.
wdb.md documents `numtab = {}` to restore 0.2.0 behaviour, but di.util.toml
has no inline-table support and throws on it, so this uses a [numtab] section
with the demo's own thresholds instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
alowrydi
added a commit
that referenced
this pull request
Oct 16, 2026
…play deps.toml keeps this branch's pins and adds di.merge. wdb1.toml keeps this branch's settings and adds main's [numtab] block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Picks up the rewritten wdb merged in kdbx-modules #137 (
di.torq.proc.wdb0.2.0 → 0.3.0).Changes
deps.toml— bump the wdb pin and adddi.merge, a new hard dependency of 0.3.0 (di.osis also new but has no VERSION file, so depcheck does not take it).appconfig/settings/wdb1.toml— add a[numtab]section.That second one is not cosmetic. 0.3.0 restores legacy TorQ's
`quote`trade!10000 50000default fornumtab(0.2.0 defaulted it to an empty dict), andmaxrowsprefersnumtabovernumrows:So the existing
numrows = 500was left governing onlypackets, which the feed never publishes. The two tables carrying all the data were overridden to 10,000 and 50,000 — at the feed's ratetradeneeds roughly 85 minutes to flush, so nothing was written intraday. Observed before the fix:wdbsavehad fired 80 times withtradeat 1059 andquoteat 4067 rows and an empty working partition. No data would have been lost (endofdaysavepassesforcesave = 1b), but the intraday writedown — the reason to run a wdb rather than just an rdb — did not happen, and up to 50,000 trade rows would sit in RAM.replaynumtabdefaults tonumtab, so log replay was affected the same way; it inherits this fix.This is documented behaviour (
wdb.mdlines 226-239), not a surprise in the module.No other settings change was needed
Every other new 0.3.0 key is defaulted and the defaults suit this stack:
mode = saveandsortsorts in-process so there is nosort/sortworkerprocess to add,partitiontype = date, andhdbtypes/rdbtypes/idbtypesdefault to proctypes already inprocess.csv.idb1needs no settings — it reads.wdb.savedir/.wdb.hdbdir/.wdb.currentpartition/.wdb.writedownmodefrom the wdb at root.rdb1.tomlalready setsreloadenabled = true, which 0.3.0 still requires when a wdb is present.Verification
Run against kdbx-modules
main(644bd91, wdb 0.3.0), full stack:All ten report
result`procname, sodi.torq.initreturned rather than aborting —torqx.sh statuscannot tell the difference, since a process whose init throws stays up.loader1exits after its run hook, as designed.wdb behaviour with this PR's config:
Rows land in
wdb/<date>/quoteenumerated against the HDB sym file. All 23deps.tomlpins resolve againstmain.One unrelated doc nit found along the way
wdb.md:239suggestsnumtab = {}to restore 0.2.0 behaviour, butdi.util.tomlsupports[section]nesting and not inline tables, so it signalsdi.util.toml: unparseable value ... {}. An empty[numtab]section does work and yields()!(). This PR sets explicit 500/500 thresholds instead, so the demo's flush pace does not silently tracknumrows. Worth a one-line fix in kdbx-modules.🤖 Generated with Claude Code