Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove foreign key contraint in table job_warnings on 'fk_jobs_id'
The job_warnings table was created in a wrong way. There are two columns 'job_id' and 'fk_jobs_id'. There is a foreign key constraint on 'fk_jobs_id', which references jobs(id). CC coding never inserts data into 'fk_jobs_id', but only into 'job_id'. So the foreign key constraint is not needed and causes way slower cleanup of pollable jobs, which can even run into DB statement timeouts and cause an ever growing table.
- Loading branch information