Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dfecec94
Commit
dfecec94
authored
Dec 14, 2021
by
Dugtuff
Committed by
Marcin Sedlak-Jakubowski
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the docs warning detected by the vale Acronym rule
parent
efd99057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/development/filtering_by_label.md
doc/development/filtering_by_label.md
+3
-3
No files found.
doc/development/filtering_by_label.md
View file @
dfecec94
...
...
@@ -47,9 +47,9 @@ This is more complicated than is ideal. It makes the query construction more
prone to errors (such as
[
issue #15557
](
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/15557
)
).
## Attempt A:
WHERE EXISTS
## Attempt A:
`WHERE EXISTS`
### Attempt A1: use multiple subqueries with
WHERE EXISTS
### Attempt A1: use multiple subqueries with
`WHERE EXISTS`
In
[
issue #37137
](
https://gitlab.com/gitlab-org/gitlab-foss/-/issues/37137
)
and its associated
[
merge request
](
https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14022
)
,
...
...
@@ -82,7 +82,7 @@ AND (EXISTS (
While this worked without schema changes, and did improve readability somewhat,
it did not improve query performance.
### Attempt A2: use label IDs in the
WHERE EXISTS
clause
### Attempt A2: use label IDs in the
`WHERE EXISTS`
clause
In
[
merge request #34503
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34503
)
, we followed a similar approach to A1. But this time, we
did a separate query to fetch the IDs of the labels used in the filter so that we avoid the
`JOIN`
in the
`EXISTS`
clause and filter directly by
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment