© Henrietta Dombrovskaya, Boris Novikov, Anna Bailliekova 2021
H. Dombrovskaya et al.PostgreSQL Query Optimizationhttps://doi.org/10.1007/978-1-4842-6885-8_7

7. Long Queries: Additional Techniques

Henrietta Dombrovskaya1  , Boris Novikov2 and Anna Bailliekova3
Braviant Holdings, Chicago, IL, USA
HSE University, Saint Petersburg, Russia
Zendesk, Madison, WI, USA

Chapter 6 discussed multiple ways of improving the performance of long queries. Thus far, all covered techniques relate to rewriting queries without creating any additional database objects. This chapter addresses additional ways of improving long query performance, including different ways to materialize intermediate results. Temporary tables, CTEs (common table expressions), views, ...

Get PostgreSQL Query Optimization: The Ultimate Guide to Building Efficient Queries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.