Repository navigation
perf: keep notification relevance checks as lookups instead of hashes - #1225
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Relevance lookup planning app/Queries/NotificationBuilder.php |
The follow lookup and both commit relationship queries add offset(0). Their matching conditions remain unchanged. A comment describes the intended query-planning effect. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
- dev-null-sh/dev-null.sh#997: Adds
EventCancellednotifications to the same commit-relevance path. - dev-null-sh/dev-null.sh#1216: Adds
PollEndedto notifications that require an approved associated commit. - dev-null-sh/dev-null.sh#1189: Adds
FirstCommitnotifications to the same commit-relevance condition.
Suggested reviewers: hbenabdallah, xheaven, nunomaduro
Merge Risk: 
Minimal · up to 4780a
-
No actionable merge-blocking risk is established for the documented PostgreSQL deployment.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
In
NotificationBuilder::relevant(), theEXISTSchecks joined byORget planned as hashes over the wholefollows/commitstables. AnOFFSET 0keeps each one a per-notification index lookup. This query feeds the unread count, which every open tab polls every 30s.Same rows returned.
Summary by CodeRabbit