-
Notifications
You must be signed in to change notification settings - Fork 281
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
add summary for txnBlock(1.2-dev only) #18691
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue https://github.com/matrixorigin/MO-Cloud/issues/3925
What this PR does / why we need it:
Add summary to speed up scanning txn during pull logtail
PR Type
enhancement
Description
skipFn
function inreader.go
to filter blocks based on the presence of summaries, optimizing the scanning process during logtail operations.summary
struct intable.go
by introducing atids
map to track table IDs, improving the efficiency of transaction block summaries.DefaultLogtailTxnPageSize
intypes.go
from 100 to 256 to accommodate larger transaction pages.Changes walkthrough 📝
reader.go
Add block filtering logic in logtail reader
pkg/vm/engine/tae/logtail/reader.go
skipFn
function to filter blocks based on summary presence.ForeachRowInBetween
to useskipFn
.table.go
Enhance summary struct with table IDs tracking
pkg/vm/engine/tae/logtail/table.go
tids
map insummary
struct.trySumary
to populatetids
with table IDs.types.go
Update default logtail transaction page size
pkg/vm/engine/tae/options/types.go
DefaultLogtailTxnPageSize
from 100 to 256.