Prepared statements

I noticed that queries logged in new rails apps are no longer using prepared statements from the logs. I’m looking for how to reenable that behavior. I looked around and it seems like settings prepared_statements: true in the database.yml should have done it but no luck.

Anybody have any information on this change? Can we link to the PR so I can know why this change even happened?

It no longer does the bind variable stuff:

Person.find 1

Person Load (5.6ms) SELECT “people”.* FROM “people” WHERE “people”.“id” = ? LIMIT 1 [[“id”, 1]]

Instead it’s doing the query straight away

Person.find 1

Person Load (0.1ms) SELECT “people”.* FROM “people” WHERE “people”.“id” = 1 LIMIT 1