[PR #10780] [CLOSED] 10694 remove bulk calls #13693

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10780
Author: @arthanson
Created: 10/27/2022
Status: Closed

Base: featureHead: 10694-remove-bulk-calls


📝 Commits (1)

📊 Changes

2 files changed (+19 additions, -39 deletions)

View changed files

📝 netbox/dcim/models/devices.py (+16 -36)
📝 netbox/extras/models/customfields.py (+3 -3)

📄 Description

Fixes: #10694

Figured we would want this in 3.4 as it will effect new search backend and should be in a .x release for thorough testing.

bulk_create used in:

netbox/dcim/models/devices.py - removed
netbox/search/backends.py - this is for the search cache, I think this is okay and doesn't need to be update.

bulk_update used in:

netbox/dcim/models/devices.py - removed
netbox/extras/models/customfields.py - removed: Note - this is possibly the largest performance penalty area depending on usage of custom fields...
netbox/ipam/signals.py - used to update tree nodes so I think it is okay to leave as bulk operations as nothing outside of MPTT should care about theses.
netbox/ipam/utils.py - used to change the ordering of the Prefix objects in the MPTT tree so I think is okay to leave as bulk operations.
netbox/api/viewsets/mixins.py - Just internal named function bulk_update, doesn't actually use bulk update operations.


🔄 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/10780 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/27/2022 **Status:** ❌ Closed **Base:** `feature` ← **Head:** `10694-remove-bulk-calls` --- ### 📝 Commits (1) - [`b609d90`](https://github.com/netbox-community/netbox/commit/b609d9074ba1410a5c71cf7679daa23e62f32570) 10694 remove bulk calls ### 📊 Changes **2 files changed** (+19 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/devices.py` (+16 -36) 📝 `netbox/extras/models/customfields.py` (+3 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #10694 <!-- Please include a summary of the proposed changes below. --> Figured we would want this in 3.4 as it will effect new search backend and should be in a .x release for thorough testing. ### bulk_create used in: **netbox/dcim/models/devices.py** - removed **netbox/search/backends.py** - this is for the search cache, I think this is okay and doesn't need to be update. ### bulk_update used in: **netbox/dcim/models/devices.py** - removed **netbox/extras/models/customfields.py** - removed: Note - this is possibly the largest performance penalty area depending on usage of custom fields... **netbox/ipam/signals.py** - used to update tree nodes so I think it is okay to leave as bulk operations as nothing outside of MPTT should care about theses. **netbox/ipam/utils.py** - used to change the ordering of the Prefix objects in the MPTT tree so I think is okay to leave as bulk operations. **netbox/api/viewsets/mixins.py** - Just internal named function bulk_update, doesn't actually use bulk update operations. --- <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 23:20:18 +01:00
adam closed this issue 2025-12-29 23: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#13693