Re: 3t and performance

From: Marcin Skladaniec (marci..sh.com.au)
Date: Sun Jan 29 2006 - 21:52:38 EST

  • Next message: jira-norepl..bjectstyle.org: "[OS-JIRA] Created: (CAY-434) Modeler exception"

    Allright then, I'm waiting for the note, and I will try to work on
    those features.
    Cheers
    Marcin

    On 30/01/2006, at 11:11 AM, Andrus Adamchik wrote:

    > [forwarding to devel]
    >
    > Appreciate that! Let's hold it off for another week or so, as I am
    > refactoring the whole stack right now to accommodate nested
    > contexts. Once the code stabilizes (I'll send a note to DEVEL or
    > maybe even post an M11 milestone), it would be cool if you could
    > work on that.
    >
    > This is the environment setup instructions (you may have been
    > through this already):
    >
    > http://objectstyle.org/confluence/display/CAY/Developer+Guide
    >
    > Now the code... Based on the way things look now, we would need an
    > analog of DataContextSelectAction for CayenneContext. Current CVS
    > version of it (that I am actively refactoring) works sort of like a
    > chain of filters handling different query flags in turn, and
    > fetching only if results can't be obtained from cache:
    >
    > if (metadata.getPageSize() > 0) {
    > return new IncrementalFaultList(context, query);
    > }
    >
    > if (interceptOIDQuery() == DONE) {
    > return this.result;
    > }
    >
    > if (interceptRelationshipQuery() == DONE) {
    > return this.result;
    > }
    >
    > // intercept explicitly cached queries
    > if (QueryMetadata.LOCAL_CACHE.equals(metadata.getCachePolicy
    > ())) {
    > return getListViaCache();
    > }
    >
    > return getList();
    >
    >
    > 'interceptOIDQuery' and 'interceptRelationshipQuery' are only used
    > for nested contexts, so you can ignore that at the moment.
    >
    > Andrus
    >
    >
    > On Jan 29, 2006, at 6:55 PM, Marcin Skladaniec wrote:
    >
    >>
    >> I was thinking about helping you with that feature, but I have any
    >> clue where to start ...
    >> Thank you,
    >> Marcin
    >>
    >>
    >> On 30/01/2006, at 10:02 AM, Andrus Adamchik wrote:
    >>
    >>> Marcin,
    >>>
    >>> Both features (result list caching and query pagination) are not
    >>> yet supported by CayenneContext (and therefore not available on
    >>> the client). I am working on something else right now, but I am
    >>> planning to add this in the nearest future.
    >>>
    >>> Andrus
    >>>
    >>>
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Sun Jan 29 2006 - 21:52:41 EST