I am taking an application that ran on WebSphere and converting it to run on JBoss EAP 6.2. It is using hibernate search with lucene and JPA for queries. The problem is in JBoss the data takes over a minute to return but in WebSphere it only takes about 3 seconds. It is only returning about 800 rows so it should not take long. This seems to be a JPA issue. Does anybody have any idea as to what might be causing the slowness?