# HG changeset patch # User Sverre Rabbelier # Date 1236818932 0 # Node ID 747b0d1115eae315f98d20201a24acc53b53d996 # Parent 32f5379c4242e27313bd884d476f677120e33292 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 diff -r 32f5379c4242 -r 747b0d1115ea 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