Answer by Erwin Brandstetter for Deadlock with multi-row INSERTs despite ON...
The ON CONFLICT clause can prevent duplicate key errors. There can still be friction with concurrent transactions trying to enter the same keys or update the same rows. So it's no insurance against...
View ArticleDeadlock with multi-row INSERTs despite ON CONFLICT DO NOTHING
SetupI have a bulk insert function set_interactions(arg_rows text) that looks like this:with inserts as ( insert into interaction ( thing_id, associate_id, created_time) select t->>'thing_id',...
View Article
More Pages to Explore .....