mirror of
https://github.com/penpot/penpot.git
synced 2026-05-03 23:29:03 +00:00
Until now, a file `data` snapshot was persisted on every file_change row. That causes a lot of IO load and increase disk usage without a real benefit. This commit reduces the snapshot generation; now the snapshot is persisted every 20 update-file or when a file is not touched in 3 hours or more.
3 lines
57 B
SQL
3 lines
57 B
SQL
ALTER TABLE file_change
|
|
ALTER COLUMN data DROP NOT NULL;
|