[Blends-commit] [SCM] website branch, master, updated. a61643e1ce51d2b622c4f3dbd335503c0cfdde31

Andreas Tille tille at debian.org
Thu Mar 12 14:27:30 UTC 2015


The following commit has been merged in the master branch:
commit a61643e1ce51d2b622c4f3dbd335503c0cfdde31
Author: Andreas Tille <tille at debian.org>
Date:   Thu Mar 12 14:50:49 2015 +0100

    Drastically speed up query by droping useless GROUP BY.  Thanks a lot to Akshita Jha (https://lists.debian.org/debian-blends/2015/03/msg00021.html) I also dropped the other redundant GROUP BY

diff --git a/webtools/bugs_udd.py b/webtools/bugs_udd.py
index 69fe254..9bfeeae 100755
--- a/webtools/bugs_udd.py
+++ b/webtools/bugs_udd.py
@@ -86,7 +86,6 @@ def main():
             JOIN bugs bu    ON bu.source = p.source
             JOIN sources s  ON s.source  = p.source
             WHERE blend = $1 AND b.distribution = 'debian'
-            GROUP BY s.source, b.dependency, b.component, s.homepage, s.vcs_browser, s.maintainer, s.version
         ) sources
         -- check status of dependency relation because only suggested packages are less important for bugs sentinel
         LEFT OUTER JOIN (
@@ -97,7 +96,6 @@ def main():
               JOIN sources s ON p.source = s.source AND p.release = s.release
               JOIN blends_dependencies_priorities bdp ON b.dependency = bdp.dependency
               WHERE b.blend = $1
-              GROUP BY p.source, b.task, bdp.dependency, bdp.priority
           ) tmp
           WHERE row_number = 1
         ) tasks ON sources.source = tasks.source

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list