perf(champs): add stable_id index on champs
This commit is contained in:
parent
d8a5d708b6
commit
eaa2e484b9
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
|||
class AddStableIdIndexToChamps < ActiveRecord::Migration[7.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :champs, :stable_id, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_04_15_192417) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2024_04_16_062900) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_buffercache"
|
||||
enable_extension "pg_stat_statements"
|
||||
|
@ -269,6 +269,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_04_15_192417) do
|
|||
t.index ["etablissement_id"], name: "index_champs_on_etablissement_id"
|
||||
t.index ["parent_id"], name: "index_champs_on_parent_id"
|
||||
t.index ["row_id"], name: "index_champs_on_row_id"
|
||||
t.index ["stable_id"], name: "index_champs_on_stable_id"
|
||||
t.index ["type"], name: "index_champs_on_type"
|
||||
t.index ["type_de_champ_id", "dossier_id", "row_id"], name: "index_champs_on_type_de_champ_id_and_dossier_id_and_row_id", unique: true
|
||||
t.index ["type_de_champ_id"], name: "index_champs_on_type_de_champ_id"
|
||||
|
|
Loading…
Reference in a new issue