[PR #20665] [MERGED] Fixes #20637: Omit inventory item serials from device search filter to improve performance #16002

Closed
opened 2025-12-30 00:25:15 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20665
Author: @jeremystretch
Created: 10/23/2025
Status: Merged
Merged: 10/23/2025
Merged by: @bctiemann

Base: mainHead: 20637-improve-device-q-filter


📝 Commits (1)

  • 3bd0186 Fixes #20637: Omit inventory item serials from device search filter to improve performance

📊 Changes

1 file changed (+0 additions, -1 deletions)

View changed files

📝 netbox/dcim/filtersets.py (+0 -1)

📄 Description

Fixes: #20637

Avoid the very expensive many-to-many lookup matching on InventoryItem serial values. This causes an excessive delay when many inventory items have been populated in NetBox (regardless of whether they match the query).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20665 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/23/2025 **Status:** ✅ Merged **Merged:** 10/23/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `20637-improve-device-q-filter` --- ### 📝 Commits (1) - [`3bd0186`](https://github.com/netbox-community/netbox/commit/3bd018687041d78fa8b833c7a5177e1383e9b521) Fixes #20637: Omit inventory item serials from device search filter to improve performance ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/filtersets.py` (+0 -1) </details> ### 📄 Description ### Fixes: #20637 Avoid the very expensive many-to-many lookup matching on InventoryItem serial values. This causes an excessive delay when many inventory items have been populated in NetBox (regardless of whether they match the query). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:25:15 +01:00
adam closed this issue 2025-12-30 00:25:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16002