[PR #14463] [MERGED] Closes #14436: Add indexes for all GenericForeignKey fields #14391

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14463
Author: @jeremystretch
Created: 12/7/2023
Status: Merged
Merged: 12/7/2023
Merged by: @jeremystretch

Base: featureHead: 14436-gfk-indexes


📝 Commits (2)

  • 20f0858 Closes #14436: Add PostgreSQL indexes for all GenericForeignKeys
  • 0c966ff Add note about GFK indexes to developer docs

📊 Changes

22 files changed (+208 additions, -15 deletions)

View changed files

📝 docs/development/extending-models.md (+26 -13)
netbox/core/migrations/0010_gfk_indexes.py (+17 -0)
📝 netbox/core/models/jobs.py (+3 -0)
netbox/dcim/migrations/0184_gfk_indexes.py (+25 -0)
📝 netbox/dcim/models/cables.py (+3 -0)
📝 netbox/dcim/models/device_component_templates.py (+3 -0)
📝 netbox/dcim/models/device_components.py (+3 -0)
📝 netbox/extras/migrations/0101_eventrule.py (+4 -0)
netbox/extras/migrations/0103_gfk_indexes.py (+37 -0)
📝 netbox/extras/models/change_logging.py (+4 -0)
📝 netbox/extras/models/models.py (+12 -0)
📝 netbox/extras/models/staging.py (+3 -0)
netbox/ipam/migrations/0069_gfk_indexes.py (+25 -0)
📝 netbox/ipam/models/fhrp.py (+3 -0)
📝 netbox/ipam/models/ip.py (+3 -2)
📝 netbox/ipam/models/vlans.py (+3 -0)
netbox/tenancy/migrations/0013_gfk_indexes.py (+17 -0)
📝 netbox/tenancy/models/contacts.py (+3 -0)
📝 netbox/vpn/migrations/0001_initial.py (+4 -0)
📝 netbox/vpn/migrations/0002_move_l2vpn.py (+4 -0)

...and 2 more files

📄 Description

Closes: #14436

Migrations introduced in v3.7 are updated in place where applicable.


🔄 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/14463 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/7/2023 **Status:** ✅ Merged **Merged:** 12/7/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `14436-gfk-indexes` --- ### 📝 Commits (2) - [`20f0858`](https://github.com/netbox-community/netbox/commit/20f0858c2e816c0fcc39903993fc7fc66dc75873) Closes #14436: Add PostgreSQL indexes for all GenericForeignKeys - [`0c966ff`](https://github.com/netbox-community/netbox/commit/0c966ff5e416e65ef2d723562faba7bf0abc0ad9) Add note about GFK indexes to developer docs ### 📊 Changes **22 files changed** (+208 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/extending-models.md` (+26 -13) ➕ `netbox/core/migrations/0010_gfk_indexes.py` (+17 -0) 📝 `netbox/core/models/jobs.py` (+3 -0) ➕ `netbox/dcim/migrations/0184_gfk_indexes.py` (+25 -0) 📝 `netbox/dcim/models/cables.py` (+3 -0) 📝 `netbox/dcim/models/device_component_templates.py` (+3 -0) 📝 `netbox/dcim/models/device_components.py` (+3 -0) 📝 `netbox/extras/migrations/0101_eventrule.py` (+4 -0) ➕ `netbox/extras/migrations/0103_gfk_indexes.py` (+37 -0) 📝 `netbox/extras/models/change_logging.py` (+4 -0) 📝 `netbox/extras/models/models.py` (+12 -0) 📝 `netbox/extras/models/staging.py` (+3 -0) ➕ `netbox/ipam/migrations/0069_gfk_indexes.py` (+25 -0) 📝 `netbox/ipam/models/fhrp.py` (+3 -0) 📝 `netbox/ipam/models/ip.py` (+3 -2) 📝 `netbox/ipam/models/vlans.py` (+3 -0) ➕ `netbox/tenancy/migrations/0013_gfk_indexes.py` (+17 -0) 📝 `netbox/tenancy/models/contacts.py` (+3 -0) 📝 `netbox/vpn/migrations/0001_initial.py` (+4 -0) 📝 `netbox/vpn/migrations/0002_move_l2vpn.py` (+4 -0) _...and 2 more files_ </details> ### 📄 Description ### Closes: #14436 Migrations introduced in v3.7 are updated in place where applicable. --- <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:24:13 +01:00
adam closed this issue 2025-12-29 23:24:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14391