Beta: CachedValue search values may (and do) exceed maximum PostgreSQL B-Tree index row size #11046
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.4-beta1
Python version
3.10
Steps to Reproduce
Expected Behavior
Migrations succeed
Observed Behavior
Migration
extras.0083_search
fails.Log:
which translates to:
ERROR: index row requires 122744 bytes, maximum size is 8191
This seems to be the issue from the perspective of the migration:
As I am not a database engineer, I'm somewhat guessing my way through here, so in the case, I've missed an obvious configuration value, please have that in mind.
Django seems to use B-Tree indexes in PostgreSQL by default: https://docs.djangoproject.com/en/4.1/ref/models/indexes/#index-options
B-Tree indexes are described in PostgreSQL-docs with a size limit:
From my understanding of the matter, the size is exceeded as a CachedValue.value may be too large for a B-Tree index row.
The text was updated successfully, but these errors were encountered: