Skip to content
Snippets Groups Projects
  1. Jan 24, 2018
  2. Jan 23, 2018
  3. Jan 22, 2018
  4. Jan 21, 2018
  5. Jan 19, 2018
  6. Jan 18, 2018
  7. Jan 17, 2018
  8. Jan 16, 2018
  9. Jan 15, 2018
  10. Jan 14, 2018
    • Stan Hu's avatar
      Ensure CI pipelines and builds have the correction project associations · 8ddb00ad
      Stan Hu authored
      This should reduce the number of SQL queries and lookups needed to look up a
      project of a build and pipeline and vice versa.
      
      Before:
      
      ```
      [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
      => false
      [2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
      => false
      [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
      => false
      [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
      => :project
      ```
      
      After:
      
      ```
      [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
      => :builds
      [2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
      => :project
      [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
      => :pipelines
      [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
      => :project
      ```
      8ddb00ad
  11. Jan 12, 2018
  12. Jan 11, 2018
  13. Jan 10, 2018
    • Jan Provaznik's avatar
      Denormalize commits count for merge request diffs · e6a1db6d
      Jan Provaznik authored
      For each MR diff an extra 'SELECT COUNT()' is executed
      to get number of commits for the diff. Overall time to get counts for
      all MR diffs may be quite expensive. To speed up loading of MR info,
      information about number of commits is stored in a MR diff's extra column.
      
      Closes #38068
      e6a1db6d
Loading