Joey
03/23/2022, 12:47 PMwilliamdclt
03/23/2022, 12:55 PMJoey
03/23/2022, 12:56 PMJoey
03/23/2022, 12:56 PMJoey
03/23/2022, 12:56 PMwilliamdclt
03/23/2022, 1:01 PMschema
section before running zed validate
, but it means I can't just upload these files to the playground which is a bit sadJoey
03/23/2022, 1:02 PMJoey
03/23/2022, 1:02 PMJoey
03/23/2022, 1:07 PM.zed
for the schema, and distinct validation test files, but loading that into the playground would be annoyingwilliamdclt
03/23/2022, 1:08 PMwilliamdclt
03/23/2022, 1:08 PMJoey
03/23/2022, 1:08 PMJoey
03/23/2022, 1:09 PMJoey
03/23/2022, 1:09 PMJoey
03/23/2022, 1:09 PMJoey
03/23/2022, 1:10 PMwilliamdclt
03/23/2022, 1:15 PMJoey
03/23/2022, 1:17 PMwilliamdclt
03/23/2022, 1:19 PM.zed
file, at the root of my repoJoey
03/23/2022, 1:29 PMBayesian
03/23/2022, 1:36 PMJoey
03/23/2022, 2:40 PMBayesian
03/24/2022, 5:51 AMtrichner
03/24/2022, 10:16 AMtrichner
03/24/2022, 10:19 AM#
anchor seems to be broken 😉Joey
03/24/2022, 10:31 AMwilliamdclt
03/24/2022, 4:12 PMWITH rows AS (SELECT id FROM relation_tuple WHERE deleted_transaction <= $1) DELETE FROM relation_tuple WHERE id IN (SELECT id FROM rows);
. Why not DELETE FROM relation_tuple WHERE deleted_transaction <= $1
?
Second, there's no index on that table that PG can use for this query. PG will have to do a seq scan on the table, is there a reason behind the absence of index? In my case (20M relationships in database), such a seq scan takes 2 full minutesJoey
03/24/2022, 4:22 PMJoey
03/24/2022, 4:22 PM