Skip to content
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

Optimize read-only modsnap transactions #4999

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morgando
Copy link
Contributor

@morgando morgando commented Feb 3, 2025

The changes in #4902 forced all modsnap transactions to open shadow btrees. It did this because the table version cache, which is necessary for all snapshot transactions, was coupled to the shadow code; therefore, even though some read-only modsnap transactions don't require shadow btrees, they still needed to open them just to use the table version cache.

The changes in this PR decouple the table version cache from shadow code so that eligible read-only modsnap transactions can skip opening shadows, which can be expensive.

@morgando morgando force-pushed the modsnap_reader_optimization branch from a58f78d to 492c154 Compare February 3, 2025 21:56
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 0/0 tests failed ⚠.

@morgando morgando force-pushed the modsnap_reader_optimization branch 2 times, most recently from 4115da2 to 570c7f1 Compare February 4, 2025 19:17
@morgando morgando marked this pull request as ready for review February 4, 2025 19:19
@morgando morgando force-pushed the modsnap_reader_optimization branch 2 times, most recently from ea2096c to 01eea7a Compare February 4, 2025 20:16
@morgando morgando marked this pull request as draft February 4, 2025 20:51
@morgando morgando force-pushed the modsnap_reader_optimization branch from 01eea7a to c973e5d Compare February 4, 2025 21:09
@morgando morgando force-pushed the modsnap_reader_optimization branch from c973e5d to a5d2055 Compare February 4, 2025 21:43
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.

2 participants