While evaluating an escalation, this was noticed in the logs:
{code} LOG: duration: 37777.734 ms execute <unnamed>: DELETE FROM environments WHERE ID NOT IN (SELECT environment_id FROM catalogs WHERE environment_id IS NOT NULL UNION SELECT environment_id FROM reports WHERE environment_id IS NOT NULL UNION SELECT environment_id FROM factsets WHERE environment_id IS NOT NULL) LOG: temporary file: path "pg_tblspc/16400/PG_11_...", size 127286260 {code}
This ticket's a reminder to evaluate whether that's actually the query we want, e.g. union vs union all, etc.
While evaluating an escalation, this was noticed in the logs:
{code} LOG: duration: 37777.734 ms execute <unnamed>: DELETE FROM environments WHERE ID NOT IN (SELECT environment_id FROM catalogs WHERE environment_id IS NOT NULL UNION SELECT environment_id FROM reports WHERE environment_id IS NOT NULL UNION SELECT environment_id FROM factsets WHERE environment_id IS NOT NULL) LOG: temporary file: path "pg_tblspc/16400/PG_11_...", size 127286260 {code}
This ticket's a reminder to evaluate whether that's actually the query we want, e.g. {{ union}} vs {{ union all}}, etc.