-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Delete big amount of data
PostPosted: Sun Jul 23, 2006 1:37 pm 
Beginner
Beginner

Joined: Sun May 07, 2006 2:44 pm
Posts: 33
version 3.1
Mysql

Hey,

I need to delete big amount of data (around 300K records).
I don’t want that the delete process will disturb to the main process (event record) to run.

I am going to delete the records with hql statement (is it good, is there any impcat that i need to consider)

My questions:
1. Is there an option to delete in chunks?
2. Is there a way to delete in background?
Can I check if the process or the db is busy and in case it is to wait with the delete?

Do you have any tips for this?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 23, 2006 4:18 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
As far as I know there is no (build in) option to delete in chunks or in background. So you have to split you're data and write a thread on you're own. After all hibernate is an OR framework not a framework for batch processing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.