[PR #11076] [MERGED] Fixes #11046: Restrict length of indexed search values #13737

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11076
Author: @jeremystretch
Created: 12/1/2022
Status: Merged
Merged: 12/2/2022
Merged by: @jeremystretch

Base: featureHead: 11046-search-indexes


📝 Commits (3)

  • 2d49fc2 Fixes #11046: Restrict length of indexed search values
  • 774b154 Reference constant in index declaration
  • a37d638 Remove index from CachedValue.value

📊 Changes

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

View changed files

📝 netbox/extras/migrations/0083_search.py (+2 -1)
📝 netbox/extras/models/search.py (+1 -3)

📄 Description

Fixes: #11046

This adjusts the indexes on CachedValue.value to index only values less than 1024 bytes in length. This may need further experimentation but it seemed like a reasonable cut-off.


🔄 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/11076 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/1/2022 **Status:** ✅ Merged **Merged:** 12/2/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11046-search-indexes` --- ### 📝 Commits (3) - [`2d49fc2`](https://github.com/netbox-community/netbox/commit/2d49fc2521800d6a90eb0d007d1e757776934367) Fixes #11046: Restrict length of indexed search values - [`774b154`](https://github.com/netbox-community/netbox/commit/774b154e47a356894b9f752b82a94ebfa1bbd202) Reference constant in index declaration - [`a37d638`](https://github.com/netbox-community/netbox/commit/a37d6386dbbd76bb243c024250e615184f0a42f8) Remove index from CachedValue.value ### 📊 Changes **2 files changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/migrations/0083_search.py` (+2 -1) 📝 `netbox/extras/models/search.py` (+1 -3) </details> ### 📄 Description ### Fixes: #11046 This adjusts the indexes on `CachedValue.value` to index only values less than 1024 bytes in length. This may need further experimentation but it seemed like a reasonable cut-off. --- <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:31 +01:00
adam closed this issue 2025-12-29 23:20:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13737