Skip to content

Added eager load to Expiring Alerts command#18466

Merged
snipe merged 1 commit intogrokability:developfrom
marcusmoore:eager-load-expiring-alerts-command
Jan 21, 2026
Merged

Added eager load to Expiring Alerts command#18466
snipe merged 1 commit intogrokability:developfrom
marcusmoore:eager-load-expiring-alerts-command

Conversation

@marcusmoore
Copy link
Copy Markdown
Collaborator

This PR simply eager loads assignedTo and supplier within the snipeit:expiring-alerts command.

Locally, for 16 assets with expiring warranties or that are reaching their end of life the query count dropped from 29 to 13 by eliminating the n+1.

Before After
image image

[RB-20665]

@marcusmoore marcusmoore requested a review from snipe as a code owner January 21, 2026 19:52
@snipe snipe merged commit c5ada0f into grokability:develop Jan 21, 2026
8 checks passed
@marcusmoore marcusmoore deleted the eager-load-expiring-alerts-command branch January 21, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants