Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
philjohn
· 10mo ago · 0 comments
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.
Comments
[–]
sirfz
10mo ago
That doesn't work well with conflicts tho iirc
[–]
nicwolff
10mo ago
COPY INTO a temp table and INSERT INTO... SELECT FROM... ON CONFLICT UPDATE...