EclipseLink batch insert very very slow
问题 I'm trying to optimize my JPA implementation, using EclipseLink. I've added batch operations to it. But it is still taking A LOT of time to do 50 000 inserts. It takes more than 10 times the amount of time it takes to do the exact same insert using raw SQL with JDBC. To make sure batch operations were in fact working I used Wireshark to check my packets and it is not using batch inserts. Here's one of the insert packets: It is not doing: INSERT INTO ENTITYCLASSTEST (LASTNAME, NAME) VALUES (