Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5667)

Issue 4710043: Support for query eval totally in-memory, and support for query of candidate collections/extents (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by datanucleus
Modified:
12 years, 9 months ago
Reviewers:
maxr
Base URL:
http://datanucleus-appengine.googlecode.com/svn/trunk/trunk/
Visibility:
Public.

Description

This patch enables the use of candidateCollection/candidateExtent (a query can be provided with a set of instances that are to be queried) in the query. This patch also enables evaluation of queries totally in-memory when either 1. candidate collection/extent provided 2. use sets query extension "datanucleus.query.evaluateInMemory" to true. Also includes 2 simple tests 1. in-memory evaluation of a clause not evaluatable in-datastore 2. evaluation of a query passing in candidate collection Note that this does not include support for partial evaluation in-datastore and partial evaluation in-memory (i.e evaluate as much as possible in datastore as it can take and then do the rest in-memory) - that is still TODO

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -28 lines) Patch
src/com/google/appengine/datanucleus/query/JDOQLQuery.java View 2 chunks +76 lines, -12 lines 0 comments Download
src/com/google/appengine/datanucleus/query/JPQLQuery.java View 3 chunks +77 lines, -16 lines 0 comments Download
tests/com/google/appengine/datanucleus/query/JDOQLQueryTest.java View 4 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 5
datanucleus
12 years, 9 months ago (2011-07-12 18:00:10 UTC) #1
maxr
On 2011/07/12 18:00:10, datanucleus wrote: How about similar tests for JPQL?
12 years, 9 months ago (2011-07-13 05:14:53 UTC) #2
maxr
On 2011/07/13 05:14:53, maxr wrote: > On 2011/07/12 18:00:10, datanucleus wrote: > > How about ...
12 years, 9 months ago (2011-07-13 05:20:55 UTC) #3
datanucleus
Agreed about the Boolean.valueOf, and also the equivalent test to JPQLQueryTest for in-memory evaluation. Note ...
12 years, 9 months ago (2011-07-13 06:39:06 UTC) #4
maxr
12 years, 9 months ago (2011-07-13 07:05:50 UTC) #5
Go ahead and submit once you've made those changes.

Thanks!

Max

On Wed, Jul 13, 2011 at 4:39 PM, <andy_jefferson@yahoo.com> wrote:

> Agreed about the Boolean.valueOf, and also the equivalent test to
> JPQLQueryTest for in-memory evaluation. Note that you can't query over
> candidate collections/extents with JPQL (from JPA API) since JPA doesn't
> allow that (though you can using JPQL under JDO API).
>
>
>
http://codereview.appspot.com/**4710043/<http://codereview.appspot.com/4710043/>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b