[ZPatterns] getting multiple dataskins from a specialist at once?

Phillip J. Eby [email protected]
Wed, 18 Jun 2003 09:14:28 -0400


At 06:11 PM 6/17/03 -0700, [email protected] wrote:
>hi there,
>
>i've got a zpatterns application where the back-end data access is, 
>unfortunately, very slow.  currently, when i need to get a large number of 
>dataskin objects from a specialist, i have to call 'getItem()' separately 
>for each one, and this takes an unbearably long time when there are more 
>than just a few objects in my set.
>
>it's of course a simple matter to construct a query that gets all of the 
>required data all at once.  does anyone know of a way to have a specialist 
>return a large number of dataskin objects using only a single query on the 
>back end?

Not without customizing the specialist's code.  In PEAK, however, there's a 
new kind of specialist called a QueryDM that can do this (i.e. load state 
for a large number of objects at once).  Unfortunately, PEAK's 
web-publishing framework isn't ready yet, and as far as I know nobody has 
created any integration for PEAK into Zope 2.