Skip to content

Commit 6190d76

Browse files
perf: fix N+1 query in email scanner deduplication
- Pre-fetch all existing scanned emails using an `in` query. - Use a `Set` for O(1) existence checks. - This eliminates the N+1 database queries performed when iterating over fetched messages. Co-authored-by: 5queezer <34570565+5queezer@users.noreply.github.com>
1 parent c8a7d75 commit 6190d76

0 file changed

File tree

    0 commit comments

    Comments
     (0)