[jira] Commented: (CAY-1025) Do something about to-many prefetch limitations

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Sat May 03 2008 - 09:09:52 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Updated: (CAY-990) HSQLDB: Arithmetic operators in EJBQL"

        [ https://issues.apache.org/cayenne/browse/CAY-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836#action_12836 ]

    Andrus Adamchik commented on CAY-1025:
    --------------------------------------

    see also: http://objectstyle.org/cayenne/lists/cayenne-devel/2008/05/0004.html
    (maybe after we research the outlined approach, we won't have any more prefetch "limitations" to deal with?)

    > Do something about to-many prefetch limitations
    > -----------------------------------------------
    >
    > Key: CAY-1025
    > URL: https://issues.apache.org/cayenne/browse/CAY-1025
    > Project: Cayenne
    > Issue Type: Improvement
    > Components: Cayenne Core Library
    > Affects Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
    > Reporter: Andrus Adamchik
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > http://cayenne.apache.org/doc/prefetching.html
    > "PREFETCH LIMITATION: To-many relationships should not be prefetched if a query qualifier can potentially reduce a number of related objects, resulting in incorrect relationship list."
    > This can bite an unsuspecting user... So we either
    > 1. Address the core limitation by building a correct prefetch query (use subselect?)
    > 2. Detect these cases and throw an exception
    > 3. Detect these cases and silently drop a prefetch
    > I should note that debugging these problems is very hard, as they look totally random until you get to the cause.

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sat May 03 2008 - 09:13:55 EDT