Settings

Theme

Boosting Postgres Insert Performance by 50% with Unnest

timescale.com

4 points by jamesgresql a year ago · 2 comments

Reader

jamesgresqlOP a year ago

Hi HN! If you're interested in PostgreSQL or database performance here's a short benchmark I did looking into the seemingly magical performance gain you can get by INSERTing unnested arrays rather than VALUES tuples in Postgres.

Let me know if you have any questions or suggestions for next articles.

  • skunkworker a year ago

    Interesting, is there a reason why Postgres wouldn't just apply the shared query planning to INSERT...VALUES as well, it seems like almost a no-brainer to speed up all queries. Or is this more related to how the parser works with the values?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection