[ZPatterns] getting multiple dataskins from a specialist at
once?
[email protected]
[email protected]
Wed, 18 Jun 2003 11:26:47 -0700
Phillip J. Eby wrote:
> 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.
steve spicklemire seems to have done just this w/ his ZApp... i'll peek
at that and see if it meets my needs.
> 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.
i haven't started playing w/ PEAK yet, but i'm thinking about using it
(w/ wxPython) to produce a native (i.e. non-web) gui app around my data.
then, as PEAK's interaction w/ Zope3 improves, development of a Zope3
based web front end should follow fairly naturally.
for now, though, i've just gotta keep plugging away at my Zope2/Plone app...
thanks for the replies!
-r
>
> _______________________________________________
> ZPatterns mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/zpatterns