order « Batch « JPA Q&A





1. How to batch insert in specific order?    stackoverflow.com

EntityManager doesn't seem to care in which order to persist entities but I need that. Any ideas?

2. Hibernate: Unexpected fetch order for batch fetching    stackoverflow.com

I'm using hibernate's batch fetching to improve query performance. In my persistence.xml I've added the following setting:

<property name="hibernate.default_batch_fetch_size" value="50"/>
I've got an entity A, which has a 1:n relation to an entity ...

3. hibernate not batching even though order_insert=true    forum.hibernate.org

I am using Hibernate 3.5.0-Final with PostGres SQL 8.4.2, JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC3 I am doing something similar to below mentioned code for batching and have set the configurations as hibernate.order_inserts=true hibernate.order_updates=true hibernate.jdbc.batch_size=5 hibernate.jdbc.batch_versioned_data=true public void doBatch() { for ( int i=0; i<100000; i++ ) { Customer customer = new Customer(.....); session.save(customer); if ( i % ...

4. update/delete order in batch?    forum.hibernate.org

Is there a way to force deletes to happen before updates when Hibernates executes its queries? I remove a detail row from a collection in a standard master-detail relationship and then renumber the index column (a list) to patch up the hole but when I flush the parent the updates are done before the delete and I hit a unique-check violation ...

6. Batch update order and db triggers    forum.hibernate.org

Following is what my data structure is: I have a table A that has information in multiple related tables. Any changes to the this table A or the related tables needs to be recorded. To store and track the completion of the processes the updates are recorded in a table U. Problem Description: Recently I added a trigger to the table ...