[Zope] Getting records X to X+20 of catalog search

2008-05-12 Thread Sinang, Danny
Dear All,
 
How do we get records X to X+20 of a catalog search ?
 
We're aware of the limit parameter of the search () function, but this
only gives us the top Z rows. 
 
If I want to show records 90 to 100, I'm trying to avoid having to fetch
records 1 to 89.
 
Regards,
Danny
 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Getting records X to X+20 of catalog search

2008-05-12 Thread Andreas Jung



--On 12. Mai 2008 16:39:02 +0800 Sinang, Danny [EMAIL PROTECTED] 
wrote:



Dear All,

How do we get records X to X+20 of a catalog search ?

We're aware of the limit parameter of the search () function, but this
only gives us the top Z rows.

If I want to show records 90 to 100, I'm trying to avoid having to fetch
records 1 to 89.


Catalog operations become basically expensive when you call getObject(). 
Slicing the resultset first should not be harmful.


-aj

pgpThfb7arqNY.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )