Y
Hacker News
new
|
ask
|
show
|
jobs
by
philjohn
147 days ago
If you're doing large batch inserts, I've found using the COPY INTO the fastest way, especially if you use the binary data format so there's no overhead on the postgres server side.
1 comments
sirfz
147 days ago
That doesn't work well with conflicts tho iirc
link
nicwolff
145 days ago
COPY INTO a temp table and INSERT INTO... SELECT FROM... ON CONFLICT UPDATE...
link