Record « Batch « JPA Q&A





1. Batch deletion / purging of records via Java ORM    stackoverflow.com

Right - I want to delete (e.g.) 1,000,000 records from a database. This takes a long time -> the transaction times out and fails. So - I delete them in batches say 25000 ...

2. Best way to insert a good amount of records in hibernate    stackoverflow.com

I'm using hibernate + play! framework at work, is there a "best practice" on inserting a good amount of records using hibernate? They are around 6,000 to 10,000 per text file ...

3. updating many records (batch update) in hibernate    stackoverflow.com

I have class A and class B. Now class A has Set of B.

class A{
 Set<B> bset //

}
bset.size() can be > 100 or > 500 etc
Now i want to change ...

4. Maximum records in a table :: Batch delete query    forum.hibernate.org

Hi, I've got an Events table that stores information about events. The following info about events are stored in that table: source, severity, dateRecieved and description After a few days, the size of the table goes over 10,000 records! So i need to purge the database at regular intervals and keep the 1000 most recent records. In order to do that, ...

5. Hibernate : Handling Bulk Records in Batch Processing    forum.hibernate.org

We are working on a new implementation and the project requires us to process bulk data. Some scenarios of data processing are mentioned below. 1) We have around 10-12 million records in the tables on which our processes run. 2) The select criteria to process a set of records fetches minimum 45-50K records. Some scenarios bring in upto 100K records.There is ...