1. 07 Jul, 2019 6 commits
    • Thong Kuah's avatar
      Remove un-used method · 25ba11a2
      Thong Kuah authored
      We stopped calling the fallback so we can remove this now
      25ba11a2
    • Thong Kuah's avatar
      Could not address last 5 queries · a2cd33d1
      Thong Kuah authored
      Split into followup issue
      a2cd33d1
    • Thong Kuah's avatar
      Extract deployment_metrics into own object · d2ba2951
      Thong Kuah authored
      We can now share project so that we don't have to load project twice.
      Also, this extracts non-relevant logic out of Deployment.
      
      Update DeploymentsController accordingly
      d2ba2951
    • Thong Kuah's avatar
      Share project object in EnvironmentStatus · 1b5b0dea
      Thong Kuah authored
      Otherwise, each EnvironmentStatus object instantiates its own project
      when really they are the same. Improves query count performance
      1b5b0dea
    • Thong Kuah's avatar
      Remove fallback to project.deployment_platform · 1668f40f
      Thong Kuah authored
      This improves query performance of
      MergeRequestsController#ci_environments_status a lot.
      
      However this means old deployments that deployed to kubernetes clusters
      with prometheus installations will no longer show performance metrics as
      we cannot backfill cluster_id from deployment_platform with certainty
      (clusters may be edited/added/deleted, which changes the results of
      deployment_platform).
      1668f40f
    • Thong Kuah's avatar
      Add failing test showing N+1 · 72339077
      Thong Kuah authored
      We have an N+1 problem where N is environments.
      72339077
  2. 06 Jul, 2019 7 commits
  3. 05 Jul, 2019 27 commits