Optimizing Queries for Good Performance

In Chapters 5, Log Files, System Statistics, you learned how to read system statistics and how to make use of what PostgreSQL provides. Armed with this knowledge, this chapter is all about good query performance. You will learn more about the following topics:

  • Optimizer internals
  • Execution plans
  • Partitioning data
  • Enabling and disabling optimizer settings
  • Parameters for good query performance

At the end of the chapter, I hope that you will be able to write better and faster queries. And if your queries still happen to be bad, you should be able to understand why this is the case. You will also be able to use the new techniques to partition data.

Get Mastering PostgreSQL 10 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.