Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1025

Do something about to-many prefetch limitations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2 branch, 2.0 branch, 3.0
    • 3.0 beta 1, 3.0
    • Core Library
    • None

    Description

      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.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: