No description
Find a file
Christopher Baines 2ea78cff47 Tweak how logs are stored
Previously, the query for the jobs page was really slow, as it checked the
load_new_guix_revision_job_log_parts table for each job, doing a sequential
scan through the potentially large table.

Adding an index didn't seem to help, as the query planner would belive the
query could return loads of rows, where actually, all that needed checking is
whether a single row existed with a given job_id.

To avoid adding the index to the load_new_guix_revision_job_log_parts table,
and fighting with the query planner, this commit changes the
load_new_guix_revision_job_logs table to include a blank entry for jobs which
are currently being processed. This is inserted at the start of the job, and
then updated at the end to combine and replace all the parts.

This all means that the jobs page should render quickly now.
2019-07-07 21:23:18 +01:00
assets Remove the bottom margin from the header 2019-03-16 18:59:29 +00:00
build-aux Add missing build-aux files 2019-04-16 22:21:07 +01:00
guix-data-service Tweak how logs are stored 2019-07-07 21:23:18 +01:00
scripts Use line buffering for the input and output ports 2019-06-17 18:09:10 +01:00
sqitch Tweak how logs are stored 2019-07-07 21:23:18 +01:00
tests Add a new test to cover some of the loading new revisions code 2019-06-02 22:02:12 +01:00
.dir-locals.el Add .dir-locals.el 2019-04-14 10:08:49 +01:00
.envrc Add some environment variables to the .envrc file 2019-02-10 09:44:11 +00:00
.gitattributes Add a .gitattributes file 2019-04-14 10:01:58 +01:00
.gitignore Add missing build-aux files 2019-04-16 22:21:07 +01:00
bootstrap.sh Initial commit 2019-02-07 22:26:57 +00:00
configure.ac Catch the guix available when built 2019-06-13 23:11:35 +01:00
COPYING Initial commit 2019-02-07 22:26:57 +00:00
guile.am Initial commit 2019-02-07 22:26:57 +00:00
guix-dev.scm Add sqitch to guix-dev.scm 2019-04-16 22:32:45 +01:00
Makefile.am Tweak the Makefile.am to install the right things 2019-06-08 10:27:07 +01:00
pre-inst-env.in Initial commit 2019-02-07 22:26:57 +00:00
sqitch.conf Tweak the Sqitch configuration 2019-04-14 10:06:00 +01:00
test-env Add an initial test 2019-04-14 10:08:11 +01:00
VERSION Initial commit 2019-02-07 22:26:57 +00:00