You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The delays we're experiencing in certain transactions are due to the 'fetch types' functionality, which runs the following query:
selectb.oid, b.typarrayfrompg_catalog.pg_type a
left joinpg_catalog.pg_type b onb.oid=a.typelemwherea.typcategory='A'group byb.oid, b.typarrayorder byb.oid;
Each transaction re-executes this query, and when we tried disabling it, we encountered the following error: PostgresError: malformed array literal: "". The delay caused by this query is over 200ms on our side.
Is there any way we can mitigate this delay without triggering errors?
The text was updated successfully, but these errors were encountered:
Yea, I've made an issue about this some time ago. It shouldn't run on each transaction, but on each unused connection it picks from the pool. The solution I made for this, was to "prepare" all the connections in the pool. As in, using each one to perform a quick query so that all of them fetch the types.
The delays we're experiencing in certain transactions are due to the 'fetch types' functionality, which runs the following query:
Each transaction re-executes this query, and when we tried disabling it, we encountered the following error:
PostgresError: malformed array literal: ""
. The delay caused by this query is over 200ms on our side.Is there any way we can mitigate this delay without triggering errors?
The text was updated successfully, but these errors were encountered: