Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by philjohn

1 month 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.

2 comments

philjohn

Reply

sirfz  1 month ago

That doesn't work well with conflicts tho iirc

  • nicwolff  1 month ago

    COPY INTO a temp table and INSERT INTO... SELECT FROM... ON CONFLICT UPDATE...

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities