We have a file of 150M lines which updates only one table of postgresql database with such commands:
UPDATE "events" SET "value_1" = XX, "value_2" = XX, "value_3" = XX, "value_4" = XX WHERE "events"."id" = SOME_ID;
All id's are unique, there's no way to apply that update to several events. Currently such update takes approx few days if we run this with \i update.sql
in psql.
Is there any faster way to run it?