-
Notifications
You must be signed in to change notification settings - Fork 119
WIP: Attach __ROW_VERSION pseudo-field to types if the record meta-data stores versions
#3800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
WIP: Attach __ROW_VERSION pseudo-field to types if the record meta-data stores versions
#3800
Conversation
…bably won't run anymore, but it was an easy enough fix - Make the meta-data translation lazy. This avoids some stack overflow problems if the schema doesn't form a graph, something that we don't really support in relational but that we have tests of in the Record Layer - Fix up tests so that they use the new format for the base record type (with pseudo-fields) - Version tests in the RL core tests now refer to the pseudo-field
…plans affected by merge skew
…hema called __ROW_VERSION
…able force continuations on some queries, though only starting with the current version This fixes FoundationDB#3734.
📊 Metrics Diff Analysis ReportSummary
ℹ️ About this analysisThis automated analysis compares query planner metrics between the base branch and this PR. It categorizes changes into:
The last category in particular may indicate planner regressions that should be investigated. New QueriesCount of new queries by file:
Plan and Metrics ChangedThese queries experienced both plan and metrics changes. This generally indicates that there was some planner change Total: 63 queries Statistical Summary (Plan and Metrics Changed)
Significant Regressions (Plan and Metrics Changed)There were 13 outliers detected. Outlier queries have a significant regression in at least one field. Statistically, this represents either an increase of more than two standard deviations above the mean or a large absolute increase (e.g., 100).
Minor Changes (Plan and Metrics Changed)In addition, there were 50 queries with minor changes. Only Metrics ChangedThese queries experienced only metrics changes without any plan changes. If these metrics have substantially changed, Total: 52 queries Statistical Summary (Only Metrics Changed)
Significant Regressions (Only Metrics Changed)There were 2 outliers detected. Outlier queries have a significant regression in at least one field. Statistically, this represents either an increase of more than two standard deviations above the mean or a large absolute increase (e.g., 100).
Minor Changes (Only Metrics Changed)In addition, there were 50 queries with minor changes. |
To address #3796, this pushes down the resolution of the pseudo-field
__ROW_VERSIONfrom within the plan generator to closer to the fetch. The goal there is to be able to then treat the__ROW_VERSIONas a normal field elsewhere in planning, which would then allow us to remove theVersionValuefrom the planner, along with its somewhat odd semantics.