I created a test case for this: https://issues.apache.org/jira/browse/OPENJPA-2265
What i'm seeing is that for every persist as select first occurs to db for a row with a 0 primary key value.. (at least in the event that my primary key value is a Long). This is a performance issue for me since my application is processing millions of rows.. -- View this message in context: http://openjpa.208410.n2.nabble.com/Can-someone-explain-this-OpenJPA-trace-tp7580862p7581172.html Sent from the OpenJPA Users mailing list archive at Nabble.com.