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)

Key: NUCRDBMS-572
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Nontransactional queries always load all results on QueryResult creation, but should delay it if connection is pooled

Created: 29/Dec/11 10:14 AM   Updated: 11/Jan/12 05:28 PM   Resolved: 29/Dec/11 10:29 AM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 3.0.5


 Description  « Hide
When a query is executed nontransactional the XXXQueryResult is created and this will load all results immediately. This is a hangover from when we just closed the connection after each operation. Current DataNucleus allows the connection to be retained (pooled). We should only load all results in those queries when the connection is not being retained.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 29/Dec/11 10:29 AM
SVN trunk will now only load all results when nontransactional when the connection is closing; when releaseAfterUse is false this will be at the end of the PM/EM, and when releaseAfterUse is true this will be once the QueryResult is handed to the user from Query.execute().