Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented May 21, 2025

Description of Changes

This patch builds indexes over TxData for use in subscriptions. TxData represents the row updates or delta tables. If a subscription uses an index on the corresponding physical table, we build the same index over the delta table. This means that for transactions that update a lot of rows, subscriptions no longer have to scan all of them just to find a single row. Instead they can do a direct index probe as if it were a physical table.

API and ABI breaking changes

None

Expected complexity level and risk

3

Not particularly complex, but it did require updating some rewrite rules in the query planner.

Testing

This is a performance related refactor. It doesn't add any new functionality. Therefore all of the previous regression tests should apply.

@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/index-delta-tables branch from c77584a to 44a790c Compare May 21, 2025 23:46
@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/index-delta-tables branch from 44a790c to c569894 Compare May 28, 2025 03:15
@joshua-spacetime joshua-spacetime marked this pull request as ready for review May 28, 2025 03:24
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

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

Trait changes LGTM. No objection.

@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/index-delta-tables branch 3 times, most recently from df8663a to 6700d9c Compare May 28, 2025 18:29
@joshua-spacetime joshua-spacetime force-pushed the joshua/perf/index-delta-tables branch from 6700d9c to 40e09f0 Compare May 28, 2025 20:29
@joshua-spacetime joshua-spacetime added this pull request to the merge queue May 28, 2025
Merged via the queue into master with commit 8a16a12 May 28, 2025
20 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/perf/index-delta-tables branch May 28, 2025 21:18
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.

4 participants