db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@datanucleus.org>
Subject Re: Minutes: JDO TCK Conference Call Friday, Oct 21, 9 am Pacific Time
Date Tue, 25 Oct 2011 12:50:37 GMT
> One question about running JDOQL queries on of MongoDB: is there any
> chance to figure out whether a specific JDOQL query is pushed to MongoDB
> or evaluated in memory? Do I find any info about this is the DataNucleus
> log files (having the right log level)?

Log at DEBUG will show the MongoDB "query" filter. Should be clear from that if 
all components of the JDOQL are in the datastore query. 

An example
JDOQL : SELECT FROM org.jpox.samples.models.company.Person WHERE firstName == 
'Daffy' && personNum < 3

Fetching instances of collection Person fields={ "age" : 1 , "birthDate" : 1 , 
"emailAddress" : 1 , "firstName" : 1 , "globalNum" : 1 , "lastName" : 1 , 
"personNum" : 1} with filter={ "firstName" : "Daffy" , "personNum" : { "$lt" : 
3}}

In this case the "filter" is complete, hence nothing to do in-memory. The 
"fields" part of that line are the fields retrieved (i.e DFG)

-- 
Andy
DataNucleus (http://www.datanucleus.org)

Mime
View raw message