Ernst Bunders <[EMAIL PROTECTED]> wrote:
> hello
> I know that somewhere you can force the maximum number of lines to be
> returned from any query, i just can't think of where it is. Can anybody frop
> me a hint?
Use mmbase 1.7. This is (believe it or not) not supported by mmbase 1.6. You
can use the 'max' attributes on the tags, but they only limit the result
afterwards. So you should always limit your search result on another way
(e.g. by age).
In 1.7, thanks to SearchQuery proect, the situation is much better. 'max'
attribute on tags actually limit the query, and there is also 'maxnumber'
tag for use in the new 'container tags' (that also 'max' in list-tag limits
query is new, and I'm not sure it is completey backwards compatible so
perhaps this needs thinking. 'maxnumber' tag I've used until now)
On the other hand, perhaps you mean really 'any' query, for which a
property:
<properties>
<property name="max-nodes-from-query">10000</property>
</properties>
can be set on a builder xml (e..g in object.xml to let it be valid for every
object type).
This does also not limit the query, but is already a bit better then
nothing, because after 10000 result lines MMBase stops reading the query
result.
Perhaps you've heard about this property?
Michiel
--
Michiel Meeuwissen
Mediapark C101 Hilversum
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
[] ()