Issue Details (XML | Word | Printable)

Key: JDO-405
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Ilan Kirsh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

recursion-depth - fetching the whole graph with 0 or -1?

Created: 09/Aug/06 08:41 AM   Updated: 04/Oct/06 08:37 PM
Return to search
Component/s: None
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

Resolution Date: 04/Oct/06 08:37 PM


 Description  « Hide
In page 124: "A value of -1 means that the recursion-depth is not limited by traversing this field."
In page 127: "A recursion-depth of 0 will fetch the whole graph of instances reachable from this field"

Is there a difference between these two?

In addition, I think that -1 / 0 as a default might be better than 1 it terms of performance, because tracking such cycles has some overhead, which we might not want to pay for most fields in which this feature is not needed (and MaxFetchDepth is sufficient).

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.