Re: WODisplayGroup & RawRows
Re: WODisplayGroup & RawRows
- Subject: Re: WODisplayGroup & RawRows
- From: Jean-François Veillette <email@hidden>
- Date: Wed, 8 Mar 2006 09:30:26 -0500
Hi François,
My app has a user-configurable search page, which displays results in
a WODisplayGroup (10 results at a time). Depending on the search, up
to 500 complex objects can be fetched, thus the page is rather slow to
load, so I'd like to use RawRows to speed things up.
Transforming raw-row to eo is relatively fast, at least for 500
raw-rows.
If it's slow, I would I suspect something like 'batch-faulting' on
to-many relationship for those eo, or something like that (something
collateral to the fact that these are eo).
Configuring the fetch to use RawRows is a picnic, but how to convert
those raw rows 10 at a time, just before they are displayed by the
display group ?
In appendToResponse, before calling super(), you could ask the
displayedObjects() and work on it.
In other words, i'd like to see the following patern:
- load 500 objects as raw rows
- convert the first 10 objects to EntrepriseObjects using
EOEditingContext faultForRawRow()
- when the user moves to the next batch of the display group, convert
the 10 next raw rows to EntrepriseObject
... and so on
- jfv
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden