I am using typeorm, AWS lambda, RDS database proxy and an RDS postgress DB.
The RDS proxy pins the session because typeorm uses prepared statements. In the proxy log file I see the following:
2022-03-01T05:06:02.450Z [WARN] [proxyEndpoint=default] [clientConnection=3686999430] The client session was pinned to the database connection [dbConnection=1882299696] for the remainder of the session. The proxy can't reuse this connection until the session ends. Reason: A parse message was detected.
Is there a way to configure/modify typeorm so that it doesn't use prepared statements?
If the RDS proxy session pins every connection because typeorm has to use prepared statements, is there any benefit to using the RDS proxy?
Thx