Anmelden

Postgres FM· Folge 95

LIMIT vs Performance

Freitag, 3. Mai 2024 · 45 min

MP3

Shownotes

Nikolay and Michael discuss LIMIT in Postgres — what it does, how it can help with performance, and an interesting example where adding it can actually hurt performance(!)

Here are some links to things they mentioned:
• LIMIT considered harmful in PostgreSQL (Twitter thread by Christophe Pettus) twitter.com/Xof/status/1413542818673577987
• LIMIT and OFFSET (docs) postgresql.org/docs/current/queries-limit.html
• No OFFSET (by Markus Winand) use-the-index-luke.com/no-offset
• LIMIT clause (docs) postgresql.org/docs/current/sql-select.html#SQ…

~~~
What did you like or not like? What should we discuss next time? Let us know via a YouTube comment, on social media, (postgres.fm/people) or by commenting on our Google doc (docs.google.com/document/d/1PNGSn_d0A7gTR4C0p6…)!

~~~
Postgres FM is brought to you by:
• Nikolay Samokhvalov, founder of Postgres.ai (postgres.ai)
• Michael Christofides, founder of pgMustard (pgmustard.com)
With special thanks to:
• Jessie Draws (jessiedraws.com) for the amazing artwork

Anmelden oder registrieren

Jetzt

0:00 / 0:00