Database Reference
In-Depth Information
10
Performance &
Concurrency
In this chapter, we will cover the following:
F Finding slow SQL statements
F Collecting regular statistics from pg_stat* views
F Finding what makes SQL slow
F Reducing the number of rows returned
F Simplifying complex SQL
F Speeding up queries without rewriting them
F Why queries do not use an index
F How do force a query to use an index
F Using optimistic locking
F Reporting performance problems
Introduction
Performance and concurrency are two problems that are often tightly coupled—when
concurrency grows, performance usually degrades, in some cases a lot. And, if you take care
of performance problems, you can achieve better concurrency.
In this chapter, we show you how to find slow queries, and also how to find queries that make
other queries slow.
Search WWH ::




Custom Search