-
Notifications
You must be signed in to change notification settings - Fork 4
add new option to skip grant expansion in compaction. #540
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughA new boolean field Changes
Sequence DiagramsequenceDiagram
participant Caller
participant Compactor
participant GrantExpansion as Grant Expansion<br/>(conditional)
Caller->>Compactor: Compact()
alt shouldExpandGrants == true
Compactor->>GrantExpansion: Create empty connector
GrantExpansion->>GrantExpansion: Build syncer
GrantExpansion->>GrantExpansion: Perform Sync
GrantExpansion->>GrantExpansion: Close
GrantExpansion-->>Compactor: Return result/error
else shouldExpandGrants == false
Compactor->>Compactor: Skip grant expansion
end
Compactor-->>Caller: Return
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)pkg/synccompactor/compactor.go (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
Comment |
|
this doesn't make sense to me. you still need to expand grants guys. ust not at every stage of compaction. we also need to make expansion fast. why is it slow? the SCC part runs in a small number of seconds even for massive graphs. |
Summary by CodeRabbit