This is not strictly PgDog-related.
Rails (Ruby on Rails) does a lot of nasty stuff with prepared statements that make them basically unusable:
- It uses
IN ($1, $2, $3) instead of = ANY($1)
- It injects comments directly into the query sql
Both blows up the statement cache cardinality, on our end and theirs.
We should write a gem that monkeypatches this so people have an easier time migrating to prepared statements when using Rails. We should support several recent versions.
This is not strictly PgDog-related.
Rails (Ruby on Rails) does a lot of nasty stuff with prepared statements that make them basically unusable:
IN ($1, $2, $3)instead of= ANY($1)Both blows up the statement cache cardinality, on our end and theirs.
We should write a gem that monkeypatches this so people have an easier time migrating to prepared statements when using Rails. We should support several recent versions.