From 5e6896b2d9b0b709f001d3ca3f9118877d960f8a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Feb 2013 21:20:52 +0100 Subject: [PATCH] Turn prepared statements back on We once turned these off (in commit abe71a767b266a157836c0fd45330ec415720bef) because they caused the PostgreSQL query optimizer to use very suboptimal plans. However, PostgreSQL 9.2 has supposedly fixed this: http://www.postgresql.org/docs/9.2/static/release-9-2.html So let's try again. --- src/lib/Hydra/Model/DB.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/Hydra/Model/DB.pm b/src/lib/Hydra/Model/DB.pm index bbba252f..c1c2f13e 100644 --- a/src/lib/Hydra/Model/DB.pm +++ b/src/lib/Hydra/Model/DB.pm @@ -20,8 +20,7 @@ sub getHydraDBPath { __PACKAGE__->config( schema_class => 'Hydra::Schema', connect_info => { - dsn => getHydraDBPath, - pg_server_prepare => 0, + dsn => getHydraDBPath }, );