Conversation
…s (pf-03…15) - pf-03: add roots (collection, slug) index for the public getPublishedContent slug lookup (was falling back to an in-index scan on collection). - pf-06: drop the unused bv_properties_gin GIN index — no query can use it (all predicates are ->> ILIKE), pure write amplification on block_versions; also fixed a false 'uses the JSONB GIN index' comment in revalidation.ts. - pf-07: getPublishedContent gains an optional branchName selector (additive, resolves a single published branch); embedded A/B refs no longer serialize the control tree twice (control is top-level tree; abTest.variants carries only non-control variants). Shape change: read control from the top-level tree. - pf-04: parallel internal link-path resolution (was sequential per target/variant). - pf-05: slim COUNT(DISTINCT roots.id) for listRoots total instead of re-running the full aggregate + enrichment join twice. - pf-11: executeRootPruning deletes prunable commits in ONE set-based statement (single-statement is required — the commits self-FKs are NO ACTION checked at statement end, so chunking would break FK integrity across chunk boundaries). - pf-12: archiveAssets batches the live-reference liveness check. - pf-08: executeMerge computes the merge base before the FOR UPDATE locks and reuses it only when the locked heads are unchanged (shorter lock hold, same merge-base semantics; no TOCTOU — re-reads + recomputes under the lock). - pf-15: kept .returning() for bulk notification counts (DrizzleInstance is driver-agnostic; PGlite exposes no rowCount — documented). - pf-02/09/10/13/14: doc notes for intentional cost tradeoffs; pf-09 serial recursion kept (shared visited cycle-guard). pf-01 already done by react-01. - examples/*/db/schema.ts regenerated to track the index changes. Adversarial review caught a real FK bug in the initial pf-11 chunked delete; fixed to a single statement. Full suite (1053) + tsc + lint + docs build green; example boots 200 with the new schema.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
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.
No description provided.