> -----Oorspronkelijk bericht----- > Van: Michiel Meeuwissen [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 10 december 2003 19:33 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: limiting number of returned lines > > > 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) >
The queries in question are not build with the taglib, but in java on the bridge. Sinds the site in question is supposed to go live in a fiew days, i think upgrading to 1.7 and crashcours myselfe in searchquery syntax is not the way to go. So i will probably try to find some other way to constrain the querys. But thank anyway, and it is good to know it is fixed in 1.7 Ernst > 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? that's right. It is just a disapoitment that it doesn't really affect the query. I thought that it would. I will try it anyway, and see if it helps a bit. > > > Michiel > -- > Michiel Meeuwissen > Mediapark C101 Hilversum > +31 (0)35 6772979 > nl_NL eo_XX en_US > mihxil' > [] () >
