Specify external connection poolers

This commit is contained in:
laurenceisla
2021-09-30 17:18:58 -05:00
committed by GitHub
parent 09ca21d032
commit a6a088e9f0
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -120,12 +120,12 @@ The burst argument tells Nginx to start dropping requests if more than five queu
Nginx rate limiting is general and indiscriminate. To rate limit each authenticated request individually you will need to add logic in a :ref:`Custom Validation <custom_validation>` function.
.. _connection_poolers:
.. _external_connection_poolers:
Using Connection Poolers
------------------------
Using External Connection Poolers
---------------------------------
In order to increase performance, PostgREST uses prepared statements by default. However, this setting is incompatible with connection poolers such as PgBouncer working in transaction pooling mode. In this case, you need to set the :ref:`db-prepared-statements` config option to ``false``. On the other hand, session pooling is fully compatible with PostgREST, while statement pooling is not compatible at all.
PostgREST manages its :ref:`own pool of connections <db-pool>` and uses prepared statements by default in order to increase performance. However, this setting is incompatible with external connection poolers such as PgBouncer working in transaction pooling mode. In this case, you need to set the :ref:`db-prepared-statements` config option to ``false``. On the other hand, session pooling is fully compatible with PostgREST, while statement pooling is not compatible at all.
.. note::