diff --git a/backend/src/app/migrations.clj b/backend/src/app/migrations.clj index 2a4728c8ef..0efd246139 100644 --- a/backend/src/app/migrations.clj +++ b/backend/src/app/migrations.clj @@ -394,7 +394,10 @@ :fn (mg/resource "app/migrations/sql/0123-mod-file-change-table.sql")} {:name "0124-mod-profile-table" - :fn (mg/resource "app/migrations/sql/0124-mod-profile-table.sql")}]) + :fn (mg/resource "app/migrations/sql/0124-mod-profile-table.sql")} + + {:name "0125-mod-file-table" + :fn (mg/resource "app/migrations/sql/0125-mod-file-table.sql")}]) (defn apply-migrations! [pool name migrations] diff --git a/backend/src/app/migrations/sql/0125-mod-file-table.sql b/backend/src/app/migrations/sql/0125-mod-file-table.sql new file mode 100644 index 0000000000..20d560bbb5 --- /dev/null +++ b/backend/src/app/migrations/sql/0125-mod-file-table.sql @@ -0,0 +1,3 @@ +--- This setting allow to optimize the table for heavy write workload +--- leaving space on the page for HOT updates +ALTER TABLE file SET (FILLFACTOR=50);