You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
address review feedback: drop .distinct() from event_type subquery, add tests
- Remove unnecessary .distinct() from the event_type IN-subquery; duplicates
in an IN(SELECT ...) don't affect correctness and the extra sort/hash work
is avoidable on large event tables.
- Add two unit tests for _load_candidate_sessions with event_type filter:
one verifies the predicate is pushed into SQL (single query, no N+1),
the other asserts empty DB results propagate correctly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments