Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #11046: Restrict length of indexed search values #11076

Merged
merged 3 commits into from
Dec 2, 2022

Conversation

jeremystretch
Copy link
Member

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.

netbox/extras/models/search.py Outdated Show resolved Hide resolved
@jeremystretch
Copy link
Member Author

After some discussion we've opted to simply remove the existing indexes for now, as they're of little utility currently. After some future testing we'll revisit and add indexes most likely to be utilized during common search operations.

@jeremystretch jeremystretch added the beta Concerns a bug/feature in a beta release label Dec 2, 2022
@jeremystretch jeremystretch merged commit 52cf908 into feature Dec 2, 2022
@jeremystretch jeremystretch deleted the 11046-search-indexes branch December 2, 2022 15:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants