DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

Short circuit PersistentClassROF for case where no subclass of the candidate (even though there are superclasses)

Created: 20/Aug/13 02:45 PM   Updated: 03/Sep/13 03:40 PM   Resolved: 20/Aug/13 02:47 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 3.2.6

 Description  « Hide
If we have the particular situation of a table holding instances of a base class and subclass, and we are querying for instances of the subclass. In this case the query itself will restrict to just instances of the candidate type, so we could then check whether there are any subclasses of this subclass and, if not, then assume it is of the candidate type (no extra DB check needed)

Andy Jefferson added a comment - 20/Aug/13 02:47 PM
SVN trunk adds this refinement

Andy Jefferson made changes - 20/Aug/13 02:47 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 03/Sep/13 03:40 PM
Status Resolved [ 5 ] Closed [ 6 ]