Databases · Senior · Question 37 of 75

What's a typical reason to cap max_connections in PostgreSQL and pool instead of raising it to thousands?

Explanation

Throughput usually peaks with a number of active connections near a small multiple of CPU cores. A pooler queues the rest cheaply.

Further reading

Problem with a question

Databases · Senior · question 37

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz