Skip to content

Carry the role-words re-sync onto re-dev (upstream #1544) - #125

Merged
gedaiu merged 3 commits into
re-devfrom
carry/role-words
Nov 29, 2026
Merged

gedaiu merged 3 commits into
re-devfrom
carry/role-words

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 29, 2026

Copy link
Copy Markdown

Brings upstream deeplethe#1544 onto re-dev, so typed and implied rows keep up with their statements' evidence and role words on every materialize run (deeplethe#1267, ADR 0070 decision 4). Before this, a re-push that moved a statement's lines left the typed row reading the old lines, and implied rows never got the role words of the statement that implied them.

It includes the follow-up commit made for the maintainer's performance question: the whole-base copy now filters out rows a typed row already holds before inserting. On a scratch base with 120k live typed rows and nothing new to copy, both statements together take about 1.26 s (down from about 1.6 s). The numbers and plans are on the upstream PR.

The merge conflicts were with re-dev's English comments. They were resolved by keeping the new code from deeplethe#1544 with English comments, and the new Chinese comments in the two added tests were translated. utopia-store passes locally, 698 tests.

…s on every materialize run (deeplethe#1267)

Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
…ethe#1267)

On a base with nothing new to copy, ON CONFLICT probed every row and the
UNION sorted both source tables. UNION ALL plus a NOT EXISTS filter takes
a 120k-row run from about 1.6 s to 1.26 s for both statements.
…ze' into carry/role-words

# Conflicts:
#	crates/utopia-store/src/materialize.rs
#	crates/utopia-store/tests/store/a_bound_statement_becomes_a_typed_fact.rs
#	crates/utopia-store/tests/store/main.rs
@lore-agent

lore-agent Bot commented Nov 29, 2026

Copy link
Copy Markdown

Lore is reviewing this PR — 0c174bea-d8d7-4d05-922b-f1006996e7e8.

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

@lore-agent lore-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lore review — Approved

Clean carry of ADR 0070 decision 4 (upstream deeplethe#1544): whole-base evidence and role-word synchronization with anti-joins and non-persistent plans.

Must fix (0) · Consider (0) · Nits (0)

Reviewed by gemini-4-argon

Submit a review that requests changes to have Lore push a fix for it. Comment @lore review to re-run the review.

Posted by floor, visit c03be90c-8cb5-461c-b394-cfef7818a97b.

@gedaiu
gedaiu merged commit 889edf0 into re-dev Nov 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant