guix-data-service/sqitch/verify
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
..
add_git_repositories_cgit_url_base.sql Store and display the location of packages 2019-05-13 21:07:48 +01:00
add_location_information.sql Store and display the location of packages 2019-05-13 21:07:48 +01:00
appschema.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
buildstatus_enum.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
change_load_new_guix_revision_job_logs_contents_to_be_nullable.sql Tweak how logs are stored 2019-07-07 21:23:18 +01:00
dates_to_load_new_guix_revision_jobs.sql Record job success without deleting the job record 2019-06-02 21:48:02 +01:00
git_branches.sql Start to handle information about Git branches 2019-05-05 20:06:28 +01:00
git_repositories.sql Switch to storing Git repositories in a table 2019-05-05 14:36:52 +01:00
initial_import.sql Add some initial Sqitch migrations 2019-04-14 10:06:13 +01:00
license_support.sql Store license information for packages 2019-05-15 08:05:14 +01:00
load_new_guix_revision_job_events.sql Add more detailed new revision job handling 2019-06-02 22:00:29 +01:00
load_new_guix_revision_job_logs.sql Record the output from loading new revisions to the database 2019-06-22 01:51:49 +02:00
remove_package_metadata_sha1_hash.sql Remove the sha1_hash from the package_metadata table 2019-05-12 18:08:17 +01:00