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
--- 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