- 16 Nov, 2021 2 commits
-
-
Vladimir Shushlin authored
When implementing https://gitlab.com/gitlab-org/gitlab/-/merge_requests/72781 We planned to have this subquery: AND EXISTS ( SELECT 1 FROM "deployments" WHERE "deployments"."environment_id" = "environments"."id" AND (ref = $4) ) But I forgot to that deployments are scoped by project, and the resulting query is EXISTS (SELECT "deployments".* FROM "deployments" WHERE "deployments"."project_id" = 50 AND ( ref = 'main' ) AND ( environment_id = environments.id )) ) project_id filter forces this query to use index_deployments_on_project_id_and_ref instead of index_deployments_on_environment_id_and_ref which was introduced for this finder This commit adds unscope(where: :project_id). Resulting query now is: SELECT "environments".* FROM "environments" WHERE "environments"."project_id" = 50 AND ( "environments"."state" IN ( 'available' ) ) AND ( EXISTS (SELECT "deployments".* FROM "deployments" WHERE ( ref = 'main' ) AND ( environment_id = environments.id )) ) ORDER BY (SELECT Max("deployments"."id") FROM "deployments" WHERE "deployments"."environment_id" = "environments"."id") ASC nulls first It brings execution time from 1.6 minutes to 6 seconds with cold cache. It's still slow, but much better than it was.
-
Vladimir Shushlin authored
-
- 15 Nov, 2021 38 commits
-
-
Kamil Trzciński authored
Refactor Database::Connection into separate types See merge request gitlab-org/gitlab!72381
-
Nicolò Maria Mezzopera authored
Move navigation and actions on clusters page to Vue See merge request gitlab-org/gitlab!73637
-
Anna Vovchenko authored
-
Olena Horal-Koretska authored
Registry Title: fix tag and spacing See merge request gitlab-org/gitlab!74186
-
Nicolò Maria Mezzopera authored
-
Kushal Pandya authored
Added Redis HLL tracking to post merge actions See merge request gitlab-org/gitlab!74387
-
Kati Paizee authored
Update extends keyword to new reference style See merge request gitlab-org/gitlab!74372
-
Fiona Neill authored
Add links to pipeline editor from quick start guide See merge request gitlab-org/gitlab!74489
-
Marcel Amirault authored
-
Marcel Amirault authored
-
Fiona Neill authored
Refactor reports keyword table See merge request gitlab-org/gitlab!73125
-
Evan Read authored
-
David O'Regan authored
Fixes the position of the show labels label in issue boards Changelog: fixed MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74223 EE: true See merge request gitlab-org/gitlab!74223
-
Sanad Liaquat authored
E2E: Print full failures object in project migration spec See merge request gitlab-org/gitlab!74510
-
Kushal Pandya authored
Changes container size of user profile README See merge request gitlab-org/gitlab!74429
-
Jan Provaznik authored
Add validation length to job name See merge request gitlab-org/gitlab!73559
-
Sean McGivern authored
Implement MultiStore with fallback mechanism See merge request gitlab-org/gitlab!73660
-
Markus Koller authored
Add allow list approach to mask query params See merge request gitlab-org/gitlab!73946
-
Rajendra Kadam authored
-
Aleksei Lipniagov authored
Fix OpenStruct use in import_url_params_spec See merge request gitlab-org/gitlab!74403
-
Mehul Sharma authored
-
Dmitry Gruzd authored
HLL BatchDistinctCounter uses relation connection See merge request gitlab-org/gitlab!74112
-
Mark Florian authored
Convert admin users page tabs to Pajamas See merge request gitlab-org/gitlab!74011
-
Miguel Rincon authored
Fixes grouped security reports app track action name See merge request gitlab-org/gitlab!74402
-
Phil Hughes authored
-
Alper Akgun authored
Audit changes to compliance frameworks See merge request gitlab-org/gitlab!74292
-
Alper Akgun authored
Fix OpenStruct use in usage_data_spec See merge request gitlab-org/gitlab!74405
-
Aleksei Lipniagov authored
Allow reporters to see the service desk email address See merge request gitlab-org/gitlab!74179
-
Kati Paizee authored
Update screenshot image for Suggest Pipeline banner component See merge request gitlab-org/gitlab!74500
-
Dmitry Gruzd authored
Release the NPM metadata abbreviated support See merge request gitlab-org/gitlab!74409
-
Bob Van Landuyt authored
Merge branch '345504-bug-ipynbdiff-invalidnotebookerror-ipynbdiff-invalidnotebookerror' into 'master' Resolve "[BUG] IpynbDiff::InvalidNotebookError: IpynbDiff::InvalidNotebookError" See merge request gitlab-org/gitlab!74308
-
Andrejs Cunskis authored
-
David Fernandez authored
Cleanup feature flag gitaly_tags_finder See merge request gitlab-org/gitlab!74406
-
nmilojevic1 authored
-
Rémy Coutable authored
Add new CI task for linting GraphQL with Apollo tooling See merge request gitlab-org/gitlab!74013
-
Max Woolf authored
Prevent double-run of forcibly_show_trial_status_popover experiment See merge request gitlab-org/gitlab!73224
-
Andrejs Cunskis authored
E2E: Add ability to pass custom message to repeater See merge request gitlab-org/gitlab!74371
-
Kushal Pandya authored
Added support for click handlers in widget extension action buttons See merge request gitlab-org/gitlab!74401
-