Find a file
Antoine Eiche 7935cffd6b Create a pg_trgm index on builds.drvpath
The search query uses the LIKE operator which requires a sequential
scan (it can't use the already existing B-tree index). This new
index (trigram) avoids a sequential scan of the builds table when the
LIKE operator is used.

Here is the analyze of a request on the builds table with this index:

     explain analyze select * from builds where drvpath like '%k3r71gz0gv16ld8rhcp2bb8gb5w1xc4b%';
                                                                 QUERY PLAN
     -----------------------------------------------------------------------------------------------------------------------------------
      Bitmap Heap Scan on builds  (cost=128.00..132.01 rows=1 width=492) (actual time=0.070..0.077 rows=1 loops=1)
        Recheck Cond: (drvpath ~~ '%k3r71gz0gv16ld8rhcp2bb8gb5w1xc4b%'::text)
        ->  Bitmap Index Scan on indextrgmbuildsondrvpath  (cost=0.00..128.00 rows=1 width=0) (actual time=0.047..0.047 rows=3 loops=1)
              Index Cond: (drvpath ~~ '%k3r71gz0gv16ld8rhcp2bb8gb5w1xc4b%'::text)
      Total runtime: 0.206 ms
     (5 rows)
2019-06-06 14:28:25 +02:00
datadog add space 2017-07-26 16:56:16 +01:00
doc Fix bad ordering in projects documentation. 2018-01-17 13:34:01 -08:00
src Create a pg_trgm index on builds.drvpath 2019-06-06 14:28:25 +02:00
tests tests: change postgresql socket dir to /tmp 2019-03-29 23:46:38 +02:00
.gitignore tests: change postgresql socket dir to /tmp 2019-03-29 23:46:38 +02:00
bootstrap hydra: Simplify `bootstrap'. 2011-01-14 10:52:47 +00:00
configure.ac Stops the pager from blocking at configurePhase (#618) 2018-12-01 22:01:40 +00:00
COPYING hydra: revert license change 2010-03-29 14:16:46 +00:00
hydra-module.nix Fix Hydra VM tests 2018-07-31 21:49:05 +02:00
INSTALL hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
Makefile.am Install hydra-module.nix into $out/share/nix 2013-07-28 11:24:31 -04:00
README.md Fix link syntax in README.md (#511) 2017-09-30 22:39:36 +01:00
release.nix release: bump to 19.03 2019-04-26 15:14:27 +02:00
shell.nix inNixShell considered harmful 2016-03-22 13:10:37 +01:00
version hydra: fix tarball build, add pre suffix to tarballs 2010-09-30 15:02:42 +00:00

Hydra

Hydra is a continuous integration system based on the Nix package manager. For more information, see the manual.

For development see hacking instructions.


Icons provided free by EmojiOne.