Skip to content

Commit

Permalink
add missing view index to allow concurrent refreshes
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Sep 14, 2024
1 parent f3d1d2e commit fd41545
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddAdditionalViewIndexes < ActiveRecord::Migration[7.1]
def change
add_index :therapy_browse_table_rows, :id, unique: true
end
end
5 changes: 4 additions & 1 deletion server/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_08_23_181636) do
ActiveRecord::Schema[7.1].define(version: 2024_09_14_154057) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -925,6 +925,7 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.enum "record_state", default: "stub", null: false, enum_type: "variant_coordinate_record_state"
t.enum "exon_offset_direction", enum_type: "exon_offset_direction"
t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome"
t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build"
t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript"
Expand Down Expand Up @@ -1505,4 +1506,6 @@
HAVING ((count(evidence_items.id) > 0) OR (count(assertions.id) > 0))
ORDER BY (count(DISTINCT evidence_items.id)) DESC, therapies.id;
SQL
add_index "therapy_browse_table_rows", ["id"], name: "index_therapy_browse_table_rows_on_id", unique: true

end

0 comments on commit fd41545

Please sign in to comment.