1. 01 9月, 2016 2 次提交
  2. 12 8月, 2016 1 次提交
  3. 04 8月, 2016 1 次提交
  4. 02 8月, 2016 1 次提交
  5. 21 7月, 2016 1 次提交
  6. 20 7月, 2016 2 次提交
  7. 19 7月, 2016 1 次提交
    • E
      speed up ExternalWikiService#get_project_wiki_path · 13e74543
      Eugene Howe 提交于
      * This method previously iterated over all services in a project.  Now it
      will directly query the ExternalWikiService for the project and filter
      by active state.
      * The presence of an external wiki is also cached
      * When an external wiki is added or removed, the cached value is updated
      13e74543
  8. 16 7月, 2016 1 次提交
  9. 29 6月, 2016 1 次提交
  10. 16 6月, 2016 3 次提交
  11. 10 6月, 2016 1 次提交
  12. 03 6月, 2016 2 次提交
  13. 10 5月, 2016 1 次提交
    • J
      Remove the annotate gem and delete old annotations · f1479b56
      Jeroen van Baarsen 提交于
      In 8278b763 the default behaviour of annotation
      has changes, which was causing a lot of noise in diffs. We decided in #17382
      that it is better to get rid of the whole annotate gem, and instead let people
      look at schema.rb for the columns in a table.
      
      Fixes: #17382
      f1479b56
  14. 06 5月, 2016 1 次提交
  15. 20 4月, 2016 1 次提交
  16. 19 1月, 2016 1 次提交
    • Y
      Greatly improve external_issue_tracker performance · b4ee6f57
      Yorick Peterse 提交于
      This greatly improves the performance of Project#external_issue_tracker
      by moving most of the fields queried in Ruby to the database and letting
      the database handle all logic. Prior to this change the process of
      finding an external issue tracker was along the lines of the following:
      
      1. Load all project services into memory.
      2. Reduce the list to only services where "issue_tracker?" returns true
      3. Reduce the list from step 2 to service where "default?" returns false
      4. Find the first service where "activated?" returns true
      
      This has to two big problems:
      
      1. Loading all services into memory only to reduce the list down to a
         single item later on is a waste of memory (and slow timing wise).
      2. Calling Array#select followed by Array#reject followed by Array#find
         allocates extra objects when this really isn't needed.
      
      To work around this the following service fields have been moved to the
      database (instead of being hardcoded):
      
      * category
      * default
      
      This in turn means we can get the external issue tracker using the
      following query:
      
          SELECT *
          FROM services
          WHERE active IS TRUE
          AND default IS FALSE
          AND category = 'issue_tracker'
          AND project_id = XXX
          LIMIT 1
      
      This coupled with memoizing the result (just as before this commit)
      greatly reduces the time it takes for Project#external_issue_tracker to
      complete. The exact reduction depends on one's environment, but locally
      the execution time is reduced from roughly 230 ms to only 2 ms (= a
      reduction of almost 180x).
      
      Fixes gitlab-org/gitlab-ce#10771
      b4ee6f57
  17. 06 1月, 2016 1 次提交
  18. 12 12月, 2015 2 次提交
  19. 11 12月, 2015 1 次提交
  20. 10 12月, 2015 2 次提交
  21. 15 10月, 2015 2 次提交
  22. 14 10月, 2015 1 次提交
  23. 12 10月, 2015 1 次提交
  24. 02 9月, 2015 1 次提交
  25. 12 8月, 2015 1 次提交
  26. 04 5月, 2015 1 次提交
  27. 12 4月, 2015 2 次提交
  28. 18 3月, 2015 2 次提交
  29. 06 3月, 2015 1 次提交
  30. 05 3月, 2015 1 次提交