1. 22 6月, 2017 3 次提交
  2. 21 6月, 2017 9 次提交
  3. 20 6月, 2017 8 次提交
  4. 19 6月, 2017 4 次提交
  5. 17 6月, 2017 7 次提交
  6. 16 6月, 2017 7 次提交
    • F
      Order issues by priority · 86fc145c
      Felipe Artur 提交于
      86fc145c
    • F
      Remove Drag and drop and sorting from milestone view · ff7fe2d1
      Felipe Artur 提交于
      ff7fe2d1
    • A
      1d448a66
    • Y
      Refactor ProjectsFinder#init_collection · d2934722
      Yorick Peterse 提交于
      This changes ProjectsFinder#init_collection so it no longer relies on a
      UNION. For example, to get starred projects of a user we used to run:
      
          SELECT projects.*
          FROM projects
          WHERE projects.pending_delete = 'f'
          AND (
              projects.id IN (
                  SELECT projects.id
                  FROM projects
                  INNER JOIN users_star_projects
                      ON users_star_projects.project_id = projects.id
                  INNER JOIN project_authorizations
                      ON projects.id = project_authorizations.project_id
                  WHERE projects.pending_delete = 'f'
                  AND project_authorizations.user_id = 1
                  AND users_star_projects.user_id = 1
      
                  UNION
      
                  SELECT projects.id
                  FROM projects
                  INNER JOIN users_star_projects
                      ON users_star_projects.project_id = projects.id
                  WHERE projects.visibility_level IN (20, 10)
                  AND users_star_projects.user_id = 1
              )
          )
          ORDER BY projects.id DESC;
      
      With these changes the above query is turned into the following instead:
      
          SELECT projects.*
          FROM projects
          INNER JOIN users_star_projects
              ON users_star_projects.project_id = projects.id
          WHERE projects.pending_delete = 'f'
          AND (
              EXISTS (
                  SELECT 1
                  FROM project_authorizations
                  WHERE project_authorizations.user_id = 1
                  AND (project_id = projects.id)
              )
              OR projects.visibility_level IN (20,10)
          )
          AND users_star_projects.user_id = 1
          ORDER BY projects.id DESC;
      
      This query in turn produces a better execution plan and takes less time,
      though the difference is only a few milliseconds (this however depends
      on the amount of data involved and additional conditions that may be
      added).
      d2934722
    • S
      Speed up used languages calculation on charts page · fe0898cc
      Sean McGivern 提交于
      We removed calls from our code to Rugged::Repository#fetch_attributes:
      <https://gitlab.com/gitlab-org/gitlab_git/commit/340e111e040ae847b614d35b4d3173ec48329015>
      
      However, we didn't remove calls from within Linguist. This method is only called
      when calculating the languages for a repository on the Charts page:
      <https://github.com/github/linguist/blob/v4.7.0/lib/linguist/lazy_blob.rb#L33-L36>
      
      We can safely use our own Gitlab::Git::Attributes here. On staging, for the
      GitLab CE repo, this makes the calculation take about a third of the time:
      
          # Before
          Benchmark.realtime do
            Linguist::Repository.new(repository.rugged,
                                     repository.rugged.head.target_id).languages
          end
          #=> 23.67193900188431
      
          # After
          Benchmark.realtime do
            Linguist::Repository.new(repository.rugged,
                                     repository.rugged.head.target_id).languages
          end
          #=> 8.945212290156633
      fe0898cc
    • T
      Update CHANGELOG.md for 9.2.6 · 0d5fbd95
      Timothy Andrew 提交于
      [ci skip]
      0d5fbd95
    • E
      Adding changelog · 44ffcd9b
      Erwan GEORGET 提交于
      44ffcd9b
  7. 15 6月, 2017 2 次提交