Robert HaasSr. Staff Software Engineer @ Databricks, PostgreSQL Developer and Committer

Projects › Query Performance

Just Plain Slow

It takes a while to process a lot of data

Disks are slower than memory

Clauses involving multiple tables can’t be pushed down

Random I/O is slower than sequential I/O

Linearly scanning an array is O(n)

Can’t figure out which patterns match a string without trying them all

One regular expression is faster than two

Scanning more tables is slower than scanning fewer tables

Replanning isn’t free

xmlconcat is slow, especially when iterated

xmlagg is much slower than string_agg

UNION is slower than UNION ALL