users@glassfish.java.net

Re: Performance degradation versus JBoss

From: <glassfish_at_javadesktop.org>
Date: Fri, 21 Dec 2007 21:19:05 PST

entitymanager.clear() did the trick. Seems like toplink was accumulating managed entities and slowing down. At 1000 entities, an insert took 10 secs! Since I don't plan on using the entities within the scope of my class, I can call clear. Now I'm seeing inserts take ~ 20ms. Not sure, but on JBoss this call wasn't explicitly required.
[Message sent by forum member 'swisstraveler' (swisstraveler)]

http://forums.java.net/jive/thread.jspa?messageID=251212