You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript is stripped at runtime via `--conditions=typestrip` (Node.js native type stripping) — no compilation required for development. Use `npm run test:unit:typestrip` to run tests with this mode.
45
45
46
+
**Test timing:** prefer condition-waits over fixed `delay(N)` sleeps. `await delay(N); assert(sideEffectHappened)` races against loaded runners and is the root cause of a class of flakiness (#1138). Use the shared `waitFor(condition, timeout?, interval?)` helper in `unitTests/waitFor.js` to poll until the actual condition holds. Reserve fixed sleeps for genuinely modeling elapsed time (TTL/expiry windows) or asserting a non-event (that something has _not_ happened yet).
Copy file name to clipboardExpand all lines: config-root.schema.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -460,6 +460,10 @@
460
460
"description": "Max write queue time before rejecting (e.g. '45s')."
461
461
},
462
462
"noReadAhead": { "type": "boolean", "description": "Advise OS to not read ahead. Default: false" },
463
+
"randomAccessFields": {
464
+
"type": "boolean",
465
+
"description": "Encode records as typed random-access structures, optimizing for fast field access and smaller records. Best for tables with stable, homogeneous field types; wide or variably-typed schemas should leave this off. Applies to each primary table on open, so changing it switches encoding for tables that have not pinned the choice via the @table(randomAccessFields:) directive (safe at runtime: existing records still decode, only new writes change). Default: false"
466
+
},
463
467
"prefetchWrites": { "type": "boolean", "description": "Load data prior to write transactions. Default: true" },
464
468
"path": { "type": "string", "description": "Directory for all database files. Default: <rootPath>/database" },
0 commit comments