Skip to content
Snippets Groups Projects
  1. Feb 25, 2020
  2. Feb 18, 2020
  3. Feb 14, 2020
  4. Feb 13, 2020
  5. Feb 11, 2020
  6. Feb 10, 2020
  7. Feb 07, 2020
  8. Jan 29, 2020
  9. Jan 28, 2020
  10. Jan 24, 2020
  11. Jan 22, 2020
  12. Jan 13, 2020
  13. Jan 08, 2020
  14. Dec 20, 2019
  15. Dec 11, 2019
  16. Dec 10, 2019
  17. Dec 02, 2019
  18. Nov 26, 2019
  19. Nov 17, 2019
  20. Nov 11, 2019
  21. Oct 19, 2019
  22. Oct 10, 2019
  23. Oct 07, 2019
  24. Sep 26, 2019
  25. Sep 18, 2019
  26. Sep 16, 2019
  27. Sep 13, 2019
  28. Sep 10, 2019
    • Stan Hu's avatar
      Optimize /admin/applications so that it does not timeout · 08c3e59a
      Stan Hu authored
      On our dev instance, /admin/applications as not loading because:
      
      1. There was an unindexed query by `application_id`.
      2. There was an expensive query that attempted to load 1 million
         unique entries via ActiveRecord just to find the unique count.
      
      We fix the first issue by adding an index for that column.
      
      We fix the second issue with a simple SELECT COUNT(DISTINCT
      resource_owner_id) SQL query.
      
      In addition, we add pagination to avoid loading more than 20
      applications at once.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67228
      08c3e59a
  29. Sep 09, 2019
  30. Sep 03, 2019
    • Andreas Brandl's avatar
      Preload routes information · 53801b12
      Andreas Brandl authored
      This fixes a high frequency N+1 issue:
      
      `RoutableActions#find_routable!` is used across many controllers to
      retrieve e.g. the Project or Namespace by path. The `#find_routable!`
      method calls `#ensure_canonical_path` which in turn retrieves
      `#full_path` from the given Routable.
      
      This in turn triggers a lookup on `routes`, leading to a high frequency
      of these queries:
      
      ```sql
      SELECT  "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND
      "routes"."source_type" = $2 LIMIT $3
      ```
      
      This is unnecessary as we already join `routes` in
      `Routable#find_by_full_path` anyways.
      Unverified
      53801b12
  31. Jul 24, 2019
  32. Jul 23, 2019
    • Kamil Trzcińśki's avatar
      Bring backward compatibility for request profiles · 3a4cb6d6
      Kamil Trzcińśki authored and Grzegorz Bizon's avatar Grzegorz Bizon committed
      It seems that we missed the backward compatibility support
      for profiles in the existing folder.
      
      This commit also fixes some specs to be idempotent
      and work in a temporary directory which not always
      seems to be the case.
      
      This commit also brings the profile_spec.rb which seems
      to be missing.
      3a4cb6d6
Loading