mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05: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:
parent
ba167f256b
commit
3219c150d4
2 changed files with 7 additions and 1 deletions
|
@ -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]
|
||||
|
|
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);
|
Loading…
Add table
Reference in a new issue