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

Revert "98402: Add indexes to SavedClaim for Decision Review sidekiq job queries" #19790

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

ericboehs
Copy link
Contributor

Reverts #19758

{"host":"db-migrate-x2gnk","application":"vets-api-server","environment":"production","timestamp":"2024-12-09T18:01:16.816662Z","level":"info","level_index":2,"pid":1,"thread":"12280","named_tags":{"dd":{"env":"eks-prod","service":"vets-api","version":"77c9d4e2940998547f03a1b86d3e0c2aeccc31b6","trace_id":"0","span_id":"0"},"ddsource":"ruby"},"name":"ActiveRecord::Base","message":"Migrating to AddIndexesToSavedClaims (20241204221534)"}
== 20241204221534 AddIndexesToSavedClaims: migrating ==========================
-- add_index(:saved_claims, [:metadata, :type], {:where=>"(metadata LIKE '%error%')", :name=>"idx_saved_claims_partial_metadata_like_error_and_type", :algorithm=>:concurrently})
bin/rails aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)

PG::ProgramLimitExceeded: ERROR: index row size 3064 exceeds btree version 4 maximum 2704 for index "idx_saved_claims_partial_metadata_like_error_and_type"
DETAIL: Index row references tuple (600210,11) in relation "saved_claims".
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.
/app/db/migrate/20241204221534_add_indexes_to_saved_claims.rb:5:in `change'

Caused by:
ActiveRecord::StatementInvalid: PG::ProgramLimitExceeded: ERROR: index row size 3064 exceeds btree version 4 maximum 2704 for index "idx_saved_claims_partial_metadata_like_error_and_type" (ActiveRecord::StatementInvalid)
DETAIL: Index row references tuple (600210,11) in relation "saved_claims".
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.
/app/db/migrate/20241204221534_add_indexes_to_saved_claims.rb:5:in `change'

Caused by:
PG::ProgramLimitExceeded: ERROR: index row size 3064 exceeds btree version 4 maximum 2704 for index "idx_saved_claims_partial_metadata_like_error_and_type" (PG::ProgramLimitExceeded)
DETAIL: Index row references tuple (600210,11) in relation "saved_claims".
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.
/app/db/migrate/20241204221534_add_indexes_to_saved_claims.rb:5:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

@ericboehs ericboehs disabled auto-merge December 9, 2024 18:58
@ericboehs ericboehs merged commit 092e8cb into master Dec 9, 2024
11 of 12 checks passed
@ericboehs ericboehs deleted the revert-19758-98402-dr-add-indexes-to-saved-claims branch December 9, 2024 18:58
danlim715 pushed a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants