Fixes #21402: Prefetch device_type and manufacturer for brief mode API responses #194

Closed
opened 2026-04-05 16:22:54 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pobradovic08 on 3/7/2026

Fixes: #21402

  • Adds select_related('device_type__manufacturer') to DeviceViewSet queryset to avoid N+1 queries for unnamed devices in brief mode
*Originally created by @pobradovic08 on 3/7/2026* ### Fixes: #21402 - Adds `select_related('device_type__manufacturer')` to `DeviceViewSet` queryset to avoid N+1 queries for unnamed devices in brief mode
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#194