How to decide when a query is too slow and needs optimization
"Slow" is a relative concept. In some cases, we might be happy with query latency 1 minute (or no?), while in other scenarios, even 1 ms might seem to be too…
"Slow" is a relative concept. In some cases, we might be happy with query latency 1 minute (or no?), while in other scenarios, even 1 ms might seem to be too…
In a few hours, I'm presenting my "Seamless Postgres query optimization" tutorial at DjangoCon US, so it's a good time to talk about transitioning from…
Let's discuss today how to find and clean up redundant indexes.
Does the column order matter in Postgres, storage-wise?
reach FP_LOCK_SLOTS_PER_BACKEND=16 relations (both tables and indexes) involved in query processing, which, under high QPS, increases chances of having…
In a fast-growing project, one of the important optimization vectors is reduction of the amount of WAL (Write Ahead Log) generated.
Everyone knows that each additional index is going to slow down writes (INSERT, UPDATE – unless it's HOT).
The file ~/.psqlrc can be used to set some settings by default. For example: