morffix/migrations/000023_create_index_logs_table_task_id.up.sql
Samuel Lorch f52f517dc1
All checks were successful
/ release (push) Successful in 1m23s
Move logs from array to dedicated table
This avoids the append problem which bloats the database to 200+ gb in a
month and shrinks again to 5g with a full vacuum
2025-05-18 19:18:52 +02:00

1 line
44 B
SQL

CREATE INDEX logs_task_id on logs(task_id);