openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitish Kumar" <>
Subject RE: Slow performance with OpenJPA when selecting from a ManyToMany relation.
Date Wed, 18 Mar 2009 11:59:31 GMT
	My stats on this, I just ran it on Win XP (JRE 1.5.0_14) and
local MySQL, took an average of 3.8 sec to complete 500 iterations.
Removed the many to many association, doesn't affect the numbers much.
Make the fetch as eager and it takes 4.2 sec. 

Something weird here, added the setting  <property
name="openjpa.jdbc.DBDictionary" value="JoinSyntax=traditional"/> and it
goes up to 7.2 sec with eager and 4 sec with lazy.

PS: I still could not make the enhancer work with ANT so I wrote a
simple class 

public static void main(String[] args) {
		Collection listFiles = FileUtils.listFiles(new
				new String[] { "java" }, true);
		for (Object object : listFiles) {
			File file = (File) object;
			String[] args1 = new String[] { file.getPath()

it has a dependency on commons-io but works great.

Thanks and Regards,
Nitish Kumar 

-----Original Message-----
From: Shubbis [] 
Sent: Wednesday, March 18, 2009 12:01 AM
Subject: Re: Slow performance with OpenJPA when selecting from a
ManyToMany relation.

Ok, I still dont know what the problem is, but it seems like its not
OpenJPA's fault (i think).
I just took the whole project home with me, and installed it on my own
laptop in a new workspace, and what do you know.. It took 2.3 sec.
to the 12-15 sec.

Now, I still don't know the root of the cause, since we have tried it on
multiple computers at work, but at least this confirms that the project
itself is working.

Btw Pinaki, your plugin works perfect with MyEclipse 7.1.1 aswell. FYI.
work ;)


PS: adding the project if anyone wants to see. This is without all Ant
OpenJPA jar files as they were to big to upload here.

Pinaki Poddar wrote:
> Hi,
>> Maybe someone could post an example of their build.xml file so that i
>> could try it. See if maybe its my 
>> enhancing thats the problem.
>   If you are an Eclipse IDE user, you can try a plugin [1] that keeps
> classes enhanced always. Or you may be better of with Ant builds as
> had provided. 
>   In either case, Enhancer displays log messages and running it twice
> perhaps will confirm -- because second time it will say: 'class X is
> already persistence-capable. Ignoring...' etc.  
> [1]

View this message in context:
Sent from the OpenJPA Users mailing list archive at

"The information contained in this e-mail transmission is confidential and may be privileged.
It is intended only for the 
addressee(s) stated above. If you are not an addressee, any use, dissemination, distribution,
publication, or copying of 
the information contained in this e-mail is strictly prohibited. If you have received this
e-mail in error, please 
immediately notify us by telephone (+91 80 6618 6555), or e-mail the sender and delete the
e-mail from your system. 
If you do not want to receive our emails please let us know so that we may delete you from
our email list. Proteans 
Software Solutions and its parent group ("CAMO Group") do not accept liability for damage
caused by this email, and may 
monitor email traffic." 

View raw message