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

Prefetching doesn't work with prefetched subentity

    XMLWordPrintableJSON

Details

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

    Description

      Two entities; A->B in a n:1 relation, B has a subentity. When prefetching B, the toOneFault on A isn't updated with the prefetched B. When B is accessed from A, an additional query is still executed to get B.

      It makes no difference if A has subentities or not.

      This occurs in 2.0.4 with a disjoint and joint prefetch. With 3.0M6 it only occurs when using a disjoint prefetch.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            dvrakking Donald Vrakking
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: