Move logs from array to dedicated table
All checks were successful
/ release (push) Successful in 1m23s
All checks were successful
/ release (push) Successful in 1m23s
This avoids the append problem which bloats the database to 200+ gb in a month and shrinks again to 5g with a full vacuum
This commit is contained in:
parent
15a960da19
commit
f52f517dc1
9 changed files with 99 additions and 11 deletions
5
migrations/000022_create_logs_table.up.sql
Normal file
5
migrations/000022_create_logs_table.up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
CREATE TABLE IF NOT EXISTS logs(
|
||||
id bigserial PRIMARY KEY,
|
||||
task_id bigint REFERENCES tasks(id) NOT NULL,
|
||||
message text
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue