5mins of Postgres E49: Speed up Postgres queries with UNIONs and subquery pull-up

preview_player
Показать описание
Today, we are looking at Postgres UNION vs. OR and are investigating if using UNION is always the better choice. Answer: It is not.

*Find the article on our blog here:*

*Learn more about pganalyze:*

*Check out the pganalyze library for eBooks, webinars, and more:*

📑 *What we have discussed in this episode of 5mins of Postgres:*

*UNION ALL, data types and performance - by Laurenz Albe*

*Avoiding “OR” for better query performance - by Laurenz Albe*

*Rewrite OR to UNION in PostgreSQL queries - by Laurenz Able*

*Laurenz Able on GitHub*
Рекомендации по теме
Комментарии
Автор

Thanks for sharing such insightful content, rare on YouTube.

KunalKumar-kcbw
Автор

Thank you for all the episodes and webinars!

szuliq
Автор

Thank you for your work, Lukas and happy new year.

smyrnian_