symfonic.memory.backends.postgres_claimed_pending¶
postgres_claimed_pending ¶
Claim-qualified native PG pending rows for the private v11 graph-only path.
page_sql ¶
One page of owned claimed rows for $6 tokens; params as read.
The page is driven by the token primary key and reaches each node by its
(id, tenant_id) primary key, so it costs the page, never the pending
subtree. The owner range is checked on the claim, whose scope_path
the join then requires the node to equal exactly.
Source code in src/symfonic/memory/backends/postgres_claimed_pending.py
read
async
¶
Refuse unclaimed rows, then select owned tokens in bounded token pages.
Each page reads at most one row per owned token, by index probes under any plan. The deadline, not a row count, bounds the whole selection, as it bounds the mutation after it.
Source code in src/symfonic/memory/backends/postgres_claimed_pending.py
unclaimed_sql ¶
Owned pending rows without a pending claim; the limit is read at call time.