Repository navigation
Carry the role-words re-sync onto re-dev (upstream #1544) - #125
Merged
Merged
Conversation
…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 is reviewing this PR — 0c174bea-d8d7-4d05-922b-f1006996e7e8. Submit a review that requests changes to have Lore push a fix for it. Comment |
There was a problem hiding this comment.
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.
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.
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.