* Make the "all" page faster by not doing four identical `select

[?]
Feb 9, 2010, 2:08 PM
AVOPQAF7SL5PXYEQ3Q42AX5U4LSCBDHPYRAGX3BNKKMQB4P4FQBAC

Dependencies

  • [2] E74FJWCF * Pass the page number in the URI query string.
  • [3] FPK5LF53 * Put the project-related actions in a separate controller. Put the
  • [4] T2232OBS * Add some DB indices to make the /releases page much faster.
  • [5] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website
  • [6] SJN2QPWH * Big speed-up of the job status page and the channel generation (such

Change contents

  • edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 51
    [2.25][3.413:452](),[3.413][3.413:452]()
    $c->stash->{template} = 'all.tt';
  • replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 56
    [3.535][3.535:611]()
    my $nrBuilds = scalar($c->stash->{allBuilds}->search({finished => 1}));
    [3.535]
    [3.611]
    my $nrBuilds = $c->stash->{allBuilds}->search({finished => 1})->count;