[PR #1535] [CLOSED] Reduce the number of SQL queries made in API calls #12217

Closed
opened 2025-12-29 22:20:18 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/1535
Author: @afics
Created: 9/25/2017
Status: Closed

Base: developHead: make-api-faster


📝 Commits (3)

📊 Changes

3 files changed (+24 additions, -4 deletions)

View changed files

📝 netbox/dcim/api/views.py (+11 -2)
📝 netbox/extras/api/views.py (+1 -1)
📝 netbox/ipam/api/views.py (+12 -1)

📄 Description

This is done by adding missing tables/colums to the prefetch querysets.


🔄 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/1535 **Author:** [@afics](https://github.com/afics) **Created:** 9/25/2017 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `make-api-faster` --- ### 📝 Commits (3) - [`797074a`](https://github.com/netbox-community/netbox/commit/797074ad9f59bf22c485af7ac6b02e90fb001ab6) Reduce the number of SQL queries made in API calls - [`5c3b164`](https://github.com/netbox-community/netbox/commit/5c3b1645068520e5ba8054875ed548f9caeceeb5) Fix field name - [`d1fdfc9`](https://github.com/netbox-community/netbox/commit/d1fdfc93433f0feb1a6a1bab91602467ea6c3859) Style fixes ### 📊 Changes **3 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+11 -2) 📝 `netbox/extras/api/views.py` (+1 -1) 📝 `netbox/ipam/api/views.py` (+12 -1) </details> ### 📄 Description This is done by adding missing tables/colums to the prefetch querysets. --- <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-29 22:20:18 +01:00
adam closed this issue 2025-12-29 22:20:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12217