hydra/src
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
..
c accidentally committed an = too little, which caused all unknown values to result in 'not building', which was not the intention 2012-02-16 11:14:22 +01:00
lib Disable prepared statements completely 2012-03-12 20:47:30 +01:00
root Merge the BuildResultInfo table into the Builds table 2012-03-12 20:47:29 +01:00
script hydra-build: only send email if the status differs from the previous build 2012-03-12 20:47:29 +01:00
sql Evaluator cleanups 2012-03-12 20:47:29 +01:00
xsl hydra: refine error marking 2011-01-12 08:48:25 +00:00
Makefile.am hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
Makefile.PL * Move everything up one directory. 2009-03-05 13:41:57 +00:00