[OS-JIRA] Created: (CAY-101) Do not resolve to-many when adding or removing an object.

From: jir..bjectstyle.org
Date: Thu Mar 04 2004 - 22:32:06 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-102) Remove build.xml supplied with Cayenne distro"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-101

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-101
        Summary: Do not resolve to-many when adding or removing an object.
           Type: Improvement

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.1 [DEV]
       Versions:
                 1.1 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Thu, 4 Mar 2004 10:30 PM
        Updated: Thu, 4 Mar 2004 10:30 PM

    Description:
    This is a big performance improvement. Adding or removing new objects to to-many relationship shouldn't trigger a massive faulting of data. This is especially important for two-way relationships, e.g.:

    painting.setToArtist(artist);

    would result in faulting artist.paintingArray() for no good reason. The only current workaround is to avoid mapping to-many relationship (keeping just to-one), but this is not a very clean solution.

    Suggested solution is to track additions/removals locally until some event triggers faulting of the list. Then merge local data with whatever is fetched from DB.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Mar 04 2004 - 22:32:07 EST