> > I want to add an optional property for builders. > > This propery is called 'max-search-results'. > And what's the main reason for adding this property? I can think of > some, but if somebody proposes something like this, I'd like > to know the > reasons..... The reason for this is that MMBase cant handle too large requests to the database. Using an upperlimit will keep the system running when there has been done an 'invalid' request..
> > ReadSearchResults(ResultSet) will be changed, to ignore the records > > that are still left inside the resultset. > Why not use some sql to limit the results from the database? > This could > be done by the database-search project. Defining an upper limit on queries can be done by the query-project. What I try to propose here is a way to define the upperlimit, with the only reason to keep the system running. I don't know if the query-project has to have an upper limit defined, and I personally don't think the query project should be allowed to define an upperlimit on the results that are returned(it has to possible to define an upperlimit in the query, but when this is not done, the query shouldn't do it itselve I think). I hope that everybody now understands that it is a safety mechanism, instead of an feature, and that is also the reason that it should throw an exception,.... -- Eduard
