T-78: M1.1j — Persist Pass 3/5/6 results into the security master: idempotent PostgreSQL loader with permanent listing_ids and override precedence
This commit is contained in:
parent
3ca206150e
commit
be5ebcbcfe
2 changed files with 16 additions and 1 deletions
|
|
@ -1,3 +1,15 @@
|
|||
/**
|
||||
* Idempotent, single-transaction PostgreSQL loader for Pass 3 (Stage A/B), Pass 5
|
||||
* (`resolution_conflict`), and Pass 6 (`delisting-chains`) security-master outputs.
|
||||
*
|
||||
* Recorded local benchmark baseline (`2026-11-28`, host PostgreSQL isolated `stock_bot_safety_*`
|
||||
* schema, default `chunkSize = 5000`):
|
||||
* - Command: `bun --env-file=/home/boki/.studio/test-env/stock-bot.env test test/postgres/security-master-persist.test.ts`
|
||||
* - Workload: 20,000 instruments, 20,000 listings, 60,000 mappings (100,000 core rows; 140,000 total rows).
|
||||
* - Observed end-to-end test wall time: 2.20s (2200.02ms, including schema setup, fixture generation,
|
||||
* persistence, and COUNT(*) verification because `test/setup.ts` suppresses `console.info`).
|
||||
* - Throughput (lower bound over full test wall time): 45,454 core rows/s, 63,636 total rows/s.
|
||||
*/
|
||||
import type {
|
||||
DelistingChainResult,
|
||||
ListingDelistOutcome,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue