Reinstate the 1k limit in pick()
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 12 Mar 2009 00:48:52 +0000
changeset 1801 747b0d1115ea
parent 1800 32f5379c4242
child 1802 407000879987
Reinstate the 1k limit in pick() Considering the performance hit we take with every query of this size we need to think of a way around having to do such large queries, rather than doing them anyway. Patch by: Sverre Rabbelier
app/soc/views/models/base.py
--- a/app/soc/views/models/base.py	Thu Mar 12 00:48:23 2009 +0000
+++ b/app/soc/views/models/base.py	Thu Mar 12 00:48:52 2009 +0000
@@ -625,8 +625,7 @@
       logic: the logic that will be used for the query
     """
 
-    query = logic.getQueryForFields(filter=filter)
-    entities = logic.getAll(query)
+    entities = logic.getForFields(filter=filter, limit=1000)
     return entities
 
   @decorators.merge_params