I had a similar warning in ODE 1.2 and 2.0 (trunk). It was:

This query on type "class org.apache.ode.dao.jpa.MessageExchangeDAOImpl"
must load the entire candidate class extent and evaluate the query
in-memory.  This may be very slow.  The query must be executed in memory
because OpenJPA is configured with IgnoreCache=false and
FlushBeforeQueries=false and there are dirty instances that may affect the
query's outcome in the cache.

A following patch resolves this problem and significantly speeds up
execution:

Index:
src/main/java/org/apache/ode/dao/jpa/BPELDAOConnectionFactoryImpl.java
===================================================================
--- src/main/java/org/apache/ode/dao/jpa/BPELDAOConnectionFactoryImpl.java
(revision 732587)
+++ src/main/java/org/apache/ode/dao/jpa/BPELDAOConnectionFactoryImpl.java
(working copy)
@@ -96,7 +96,6 @@
         propMap.put("openjpa.ManagedRuntime", new TxMgrProvider());
         propMap.put("openjpa.ConnectionFactory", _ds);
         propMap.put("openjpa.ConnectionFactoryMode", "managed");
-        propMap.put("openjpa.FlushBeforeQueries", "false");
 
         if (_dbdictionary != null)
             propMap.put("openjpa.jdbc.DBDictionary", _dbdictionary);


I'm doing now tests for JBI Layer and I did parallel invoke bpel process
(using <flow>), which hanged while above warning appeared. But with
Hibernate DAO and after applying this patch, everything worked fine. 

What about adding this patch to 1.2 & 2.0?

Regards,
Rafal Rusin
http://www.mimuw.edu.pl/~rrusin/



jbi joe wrote:
> 
> Yes I am running 1.1.1  inside servicemix.  
> Can I speed up process?  When the message
> gets spit out, it is very slow, as it states in the
> INFO message...  
> 
> 
> jbi joe wrote:
>> 
>> 
>> How do I speed up????  Also still cant get rid of the Message...
>> I did some testing and found that my BPEL is slow..  Especially during
>> the
>> time when the following message is spit out     ( using 1.1.1 in
>> servicemix )
>> 
>> INFO  - Query                          - This query on type "class
>> org.apache.ode.dao.jpa.ScopeDAOImpl" must load the entire candidate class
>> extent and evaluate the query in-memory.  This may be very slow.  The
>> query
>> must be executed in memory because OpenJPA is configured with
>> IgnoreCache=false and FlushBeforeQueries=false and there are dirty
>> instances
>> that may affect the query's outcome in the cache.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/slowness-in-BPEL-tp15492817p21658762.html
Sent from the Apache Ode User mailing list archive at Nabble.com.

Reply via email to