[gnome-music/wip/mschraal/search-cleanups: 5/10] grltrackerwrapper: Limit search results



commit d54ce83a2eac5f92c4500fe9b8c63ec6b4a48566
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Jul 19 14:25:03 2019 +0200

    grltrackerwrapper: Limit search results
    
    Limit search results, so {List,Flow}Box do not get too slow.

 gnomemusic/grilowrappers/grltrackerwrapper.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index 3d4e4ce0..c271eec9 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -652,6 +652,7 @@ class GrlTrackerWrapper(GObject.GObject):
             )
             %(location_filter)s
         }
+        LIMIT 50
         """.replace('\n', ' ').strip() % {
             'location_filter': self._location_filter(),
             'name': term
@@ -707,6 +708,7 @@ class GrlTrackerWrapper(GObject.GObject):
             )
             %(location_filter)s
         }
+        LIMIT 50
         """.replace('\n', ' ').strip() % {
             'location_filter': self._location_filter(),
             'name': term
@@ -764,6 +766,7 @@ class GrlTrackerWrapper(GObject.GObject):
             )
             %(location_filter)s
         }
+        LIMIT 50
         """.replace('\n', ' ').strip() % {
             'location_filter': self._location_filter(),
             'name': term


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]