Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

Description of Changes

Creates a multi-column index on the sender and arg_id columns of a view's backing table so that we can quickly retrieve a view's result set for each caller.

API and ABI breaking changes

None

This is an internal index. No module bindings are generated for it. Uniqueness of the index name follows from the uniqueness of the table name since views live in the table namespace.

Expected complexity level and risk

1

Testing

Performance change

@joshua-spacetime joshua-spacetime linked an issue Oct 30, 2025 that may be closed by this pull request
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Oct 31, 2025
Merged via the queue into master with commit 3863f20 Oct 31, 2025
24 of 25 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/create-index-on-view-table branch October 31, 2025 07:44
Shubham8287 pushed a commit that referenced this pull request Oct 31, 2025
# Description of Changes

Creates a multi-column index on the `sender` and `arg_id` columns of a
view's backing table so that we can quickly retrieve a view's result set
for each caller.

<!-- Please describe your change, mention any related tickets, and so on
here. -->

# API and ABI breaking changes

<!-- If this is an API or ABI breaking change, please apply the
corresponding GitHub label. -->

None

This is an internal index. No module bindings are generated for it.
Uniqueness of the index name follows from the uniqueness of the table
name since views live in the table namespace.

# Expected complexity level and risk

<!--
How complicated do you think these changes are? Grade on a scale from 1
to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex
change.

This complexity rating applies not only to the complexity apparent in
the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning
ways. -->

1

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

Performance change
bfops added a commit that referenced this pull request Oct 31, 2025
bfops added a commit that referenced this pull request Oct 31, 2025
bfops added a commit that referenced this pull request Oct 31, 2025
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.

Add index on metadata columns of view tables

3 participants