[ZPatterns] getting multiple dataskins from a specialist at once?
Steve Spicklemire
[email protected]
Tue, 17 Jun 2003 21:20:51 -0500
Hi there..
Yes.. I do this in ZApp (http://sf.net/projects/zapp) with a customized
specialist... You can see the code in ZApp_Specialist.py (a fairly
simple subclass of Specialist). It builds a transaction cache of SQL
query results that get flushed at the 'right' time. You might look at
ZApp as a way to simplify your program logic. There are currently four
different lever sets (Postgres, MySQL, ZODB, and Gadfly). The postgres
levers have the most maturity at this point. I'm having a ball right
now with ZApp and CMF since I can store all the neat stuff in postgres,
but still have the objects show up as 'native' in the CMF. The one
thing I haven't had much time for is documentation... alas.. I have to
many deadlines to spend a lot of time on that.
So.. steal the code if it's helpful! ;-)
take care,
-steve
On Tuesday, June 17, 2003, at 08:11 PM, [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?
>
> thanks,
>
> -r
>
> _______________________________________________
> ZPatterns mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/zpatterns