[Zope] Returning database results similar to google search

Dylan Reinhardt zope at dylanreinhardt.com
Fri Dec 5 17:43:11 EST 2003


On Fri, 2003-12-05 at 13:53, Geir Bækholt wrote:
> On  05 Dec 2003 13:08:01 -0800 GMT 
> Dylan Reinhardt asked the Zope mailinglist about the following:

> > It's incomplete and ugly, but should get you well on your way.
> 
> It also fetches the entire table of data from the external database
> one every call, so unless you do caching, it is quite inefficient.

Good catch... that's an assumption I should have made explicit.  The OP
said the database would be updated "weekly" so caching should be easy.

The suggestion to retrieve only those records you want displayed is
probably a better all-around solution, however.

Thanks,

Dylan




More information about the Zope mailing list