Find a file
Eelco Dolstra abe71a767b Disable prepared statements completely
Because of the way DBIx::Class does prepared statements, even
innocuous queries such

  $c->model('DB::Builds)->search({finished => 0})

can be extremely slow.  This is because DBIx::Class prepares a
PostgreSQL statement

  select ... from Builds where finished = ?

and since Builds is very large and there is a large fraction of rows
with "finished = 1", the PostgreSQL query planner decides to implement
this query with a sequential scan of the Builds table (despite the
existence of an index on "finished"), which is extremely slow.  It
would be nice if we could tell DBIx::Class that constants should be
part of the prepared statement, i.e.

  select ... from Builds where finished = 0

but AFAIK we can't.
2012-03-12 20:47:30 +01:00
doc Provide a command ‘hydra-init’ to initialise/upgrade the database 2012-02-28 20:16:16 +01:00
src Disable prepared statements completely 2012-03-12 20:47:30 +01:00
tests Provide a command ‘hydra-init’ to initialise/upgrade the database 2012-02-28 20:16:16 +01:00
.gitignore Add a .gitignore 2011-11-22 14:56:37 +01:00
AUTHORS hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
bootstrap hydra: Simplify `bootstrap'. 2011-01-14 10:52:47 +00:00
configure.ac Rename hydra_*.pl to hydra-* 2011-11-30 18:14:48 +01:00
COPYING hydra: revert license change 2010-03-29 14:16:46 +00:00
deps.nix Provide a command ‘hydra-init’ to initialise/upgrade the database 2012-02-28 20:16:16 +01:00
hydra-module.nix hydra-module.nix: Remove `.pl' extension for binaries. 2011-12-02 15:47:31 +01:00
INSTALL hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
Makefile.am add tests to SUBDIRS 2011-03-16 09:07:55 +00:00
NEWS hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
README hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
release.nix Use a nicer version string 2011-12-05 15:53:23 +01:00
version hydra: fix tarball build, add pre suffix to tarballs 2010-09-30 15:02:42 +00:00