Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Oct 24, 2025

Description of Changes

Adds two new system tables for views. One tracks view arguments, the other tracks view subscribers.

st_view_arg generates a unique id for each unique argument instantiation. This id will act as a foreign key that both read sets and backing tables can reference.

st_view_client is needed so that we can drop views when clients unsubscribe or disconnect. Note this disconnect logic is not implemented in this patch.

Eventually both of these tables should be ephemeral. There's no reason they need to write to the commitlog.

Note also that the schema of a view's backing table has been updated. It no longer stores a view's argument values but rather the id from st_view_arg.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

Tests will be added in the patch that computes read sets

@joshua-spacetime joshua-spacetime force-pushed the joshua/system-table-for-read-sets branch from 05ba068 to 69afdbb Compare October 30, 2025 05:31
@joshua-spacetime joshua-spacetime force-pushed the joshua/system-table-for-read-sets branch from d2e15e5 to ea319e5 Compare October 30, 2025 06:48
@joshua-spacetime joshua-spacetime changed the title Add new system table for view read sets Add system table for tracking view subscribers Oct 30, 2025
@joshua-spacetime joshua-spacetime removed the request for review from gefjon October 30, 2025 07:35
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Oct 30, 2025
Merged via the queue into master with commit 247655b Oct 30, 2025
23 of 24 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/system-table-for-read-sets branch October 30, 2025 17:31
bfops added a commit that referenced this pull request Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants