Skip to content

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Oct 30, 2025

Somewhat minor inefficiency in notifications I discovered during a scaletest where I was creating many users. Our GetUsers query filter for rbac roles uses the && operator on arrays, which is the intersection of the two arrays. Despite that, we were making seperate DB queries for each role, and then collating the results. I didn't see any other instances of this.

The test changes are required as the order of outgoing notifications is now non-deterministic.

Copy link
Member Author

ethanndickson commented Oct 30, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review October 30, 2025 03:37
@github-actions github-actions bot added stale This issue is like stale bread. and removed stale This issue is like stale bread. labels Nov 8, 2025
@ethanndickson ethanndickson force-pushed the ethan/single-db-query-notifs branch from a131bc3 to b49ffd5 Compare November 12, 2025 02:11
@ethanndickson ethanndickson merged commit e49c917 into main Nov 12, 2025
31 checks passed
Copy link
Member Author

Merge activity

@ethanndickson ethanndickson deleted the ethan/single-db-query-notifs branch November 12, 2025 02:23
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants