Re: ERXDisplayGroup.filteredObjects cached?
Re: ERXDisplayGroup.filteredObjects cached?
- Subject: Re: ERXDisplayGroup.filteredObjects cached?
- From: Samuel Pelletier <email@hidden>
- Date: Tue, 22 Mar 2016 19:13:08 -0400
OC,
Why not using the displayedObjects ?
If you do not want batch, set the batch size to 0.
Samuel
> Le 22 mars 2016 à 15:21, OC <email@hidden> a écrit :
>
> Hello there,
>
> searching for a bottleneck in my code, I have just bumped into that ERXDisplayGroup.filteredObjects filters again and again and again each time it is called, even though nothing changed in the display group. Is that the intended behaviour? I would rather suppose it would cache and re-filter only when needed.
>
> I happen to bind mygroup.filteredObjects to lots of components in my page, which not surprisingly does not work really fast :)
>
> Anyway, is there an existing solution for this (i.e., cached filtered objects of an ERXDisplayGroup), or am I on my own to DImyself? Not that it would be that much difficult; I just hate to implement in my own and clumsy way, with a possibility to flush the cache too late etc., things which are already done right somewhere :)
>
> Thanks,
> OC
>
>
> _______________________________________________
> 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
_______________________________________________
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