summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2019-01-11 22:58:18 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2019-01-12 00:05:36 +0800
commit2f76ff19f8f520a584a1259bd0c779e988cd7360 (patch)
treebd520f3064a21ece51da2418f2f3b67c2bacfc4f /changelogs
parent6b2f81f6078e96f081154c50dc25e54fe7c09d6f (diff)
downloadgitlab-ce-2f76ff19f8f520a584a1259bd0c779e988cd7360.tar.gz
Fix MilestonesFinder to pass relations to scope
Instead of querying relations into ids we just pass them to the model scope because the scope supports it now. Also changes other calls to `Milestone.for_projects_and_groups`
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/47988-improve-milestone-queries-with-subqueries.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/47988-improve-milestone-queries-with-subqueries.yml b/changelogs/unreleased/47988-improve-milestone-queries-with-subqueries.yml
new file mode 100644
index 00000000000..d1a80ab43cf
--- /dev/null
+++ b/changelogs/unreleased/47988-improve-milestone-queries-with-subqueries.yml
@@ -0,0 +1,5 @@
+---
+title: Improve milestone queries using subqueries instead of separate queries for ids
+merge_request: 24325
+author:
+type: performance