mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
⚡ Add better internal fillfactor setting for file table
Increasing the change for HOT updates on db for this heavy-update table
This commit is contained in:
@@ -394,7 +394,10 @@
|
|||||||
:fn (mg/resource "app/migrations/sql/0123-mod-file-change-table.sql")}
|
:fn (mg/resource "app/migrations/sql/0123-mod-file-change-table.sql")}
|
||||||
|
|
||||||
{:name "0124-mod-profile-table"
|
{: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!
|
(defn apply-migrations!
|
||||||
[pool name migrations]
|
[pool name migrations]
|
||||||
|
|||||||
3
backend/src/app/migrations/sql/0125-mod-file-table.sql
Normal file
3
backend/src/app/migrations/sql/0125-mod-file-table.sql
Normal file
@@ -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);
|
||||||
Reference in New Issue
Block a user