[turba] Feature proposition : limiting the number of result shown by search.php

Andrew Morgan morgan at orst.edu
Thu May 29 13:10:34 PDT 2003


Actually, I should also state that this patch has been committed to CVS
for Turba, so you should see it when the next release of Turba is done.

	Andy

On Thu, 29 May 2003, Andrew Morgan wrote:

>
>
> On Thu, 29 May 2003, Etienne Goyer wrote:
>
> > Hi there,
> >
> > After a few months away from it, I am back at hacking Horde, IMP and
> > Turba.
> >
> > My problem here is that the source of contact for my current project
> > will be really big (~ 100K entry in LDAP), so search results could be
> > _very_ big.  In my experience, performance really become a problem past
> > 250 results.  What I would like to do is have a limit set in conf.php.
> > When limit is reached, the driver return only limit result and notify the
> > caller that result have been truncated.  search.php will then display a
> > warning along the line of "Your search returned too much results to
> > display.  Please be more specific in your search criteria."
> >
> > If such a feature have any chance of being accepted by Turba maintainer,
> > I will code it and send a patch.
> >
> > Thanks for your feedback !
> >
> > --
> > Etienne Goyer                    Linux Québec Technologies Inc.
> > http://www.LinuxQuebec.com       etienne.goyer at linuxquebec.com
>
> Here is a patch I wrote that adds a sizelimit parameter to Turba.  It
> doesn't work quite the way you want though.  If someone enters a search
> filter that is too generic, it returns the first SizeLimit results of the
> search (200 is my sizelimit here).  No error message is displayed to the
> user though.  It wasn't obvious to me how to do that in Turba.
>
> Use it if you want.  If you make any changes or add any features, please
> post them back here so I can use them too.  :)
>
> 	Andy
>



More information about the turba mailing list