[PR #18439] [MERGED] Fixes #18438: Specify batch_size for migrations which run bulk_update() #15350

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18439
Author: @jeremystretch
Created: 1/20/2025
Status: Merged
Merged: 1/21/2025
Merged by: @jeremystretch

Base: mainHead: 18438-bulk_update-batch_size


📝 Commits (1)

  • 0d08a6b Fixes #18438: Specify batch_size for migrations which run bulk_update()

📊 Changes

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

View changed files

📝 netbox/circuits/migrations/0048_circuitterminations_cached_relations.py (+1 -2)
📝 netbox/ipam/migrations/0072_prefix_cached_relations.py (+1 -1)
📝 netbox/virtualization/migrations/0045_clusters_cached_relations.py (+1 -1)

📄 Description

Fixes: #18438

Add batch_size=100 to v4.2 migrations which call bulk_update() on a set of objects.


🔄 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/18439 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/20/2025 **Status:** ✅ Merged **Merged:** 1/21/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18438-bulk_update-batch_size` --- ### 📝 Commits (1) - [`0d08a6b`](https://github.com/netbox-community/netbox/commit/0d08a6b9a856304cf5dd0f46e861e7c4bd5d7ef6) Fixes #18438: Specify batch_size for migrations which run bulk_update() ### 📊 Changes **3 files changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/migrations/0048_circuitterminations_cached_relations.py` (+1 -2) 📝 `netbox/ipam/migrations/0072_prefix_cached_relations.py` (+1 -1) 📝 `netbox/virtualization/migrations/0045_clusters_cached_relations.py` (+1 -1) </details> ### 📄 Description ### Fixes: #18438 Add `batch_size=100` to v4.2 migrations which call `bulk_update()` on a set of objects. --- <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:21:26 +01:00
adam closed this issue 2025-12-30 00:21:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15350