Skip to content
Snippets Groups Projects
  1. Feb 12, 2018
  2. Feb 08, 2018
    • Gregory Stark's avatar
      Add indexes and change SQL for expired artifacts to deal with artifacts migration efficiently · 271e7a32
      Gregory Stark authored
      Artifacts are in the middle of being migrated from ci_builds to
      ci_job_artifacts. The expiration date is currently visible in both of
      these tables and the test for whether an expired artifact is present
      for a job is complex as it requires checking both the of the tables.
      
      Add two new indexes, one on ci_builds.artifacts_expire_at and one on
      ci_job_artifacts.expire_at to enable finding expired artifacts
      efficiently.
      
      And until the migration is finished, replace the SQL for finding
      expired and non-expired artifacts with a hand-crafted UNION ALL based
      query instead of using OR. This overcomes a database optimizer
      limitation that prevents it from using these indexes.
      
      When the migration is finished the next version should remove this
      query and replace it with a much simpler query on just
      ci_job_artifacts. See
      https://gitlab.com/gitlab-org/gitlab-ce/issues/42561 for followup.
      271e7a32
    • Bob Van Landuyt's avatar
      Early migrations populating fork-networks: no-op · 7e00adcc
      Bob Van Landuyt authored
      Since populating the fork networks was scheduled multiple times
      because of bugs that needed to be fixed:
      
      - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15595/
        Creating fork networks for projects that were missing the root of
        the fork network.
      
      - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15709
        The API allowed creating forked_project_links without
        fork_network_members.
      
      Scheduling this migration multiple times would case it to run
      concurrently. Which in turn would try to insert the same data into
      `fork_network_members` causing duplicate key errors.
      
      This avoids running the migration multiple times.
      7e00adcc
  3. Feb 07, 2018
  4. Feb 06, 2018
  5. Feb 05, 2018
  6. Feb 03, 2018
  7. Feb 02, 2018
  8. Feb 01, 2018
  9. Jan 26, 2018
  10. Jan 25, 2018
  11. Jan 24, 2018
Loading