-->
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.  [ 1 post ] 
Author Message
 Post subject: HQL delete uses temporary tables when not nescesseary
PostPosted: Fri Jun 09, 2006 11:51 am 
Newbie

Joined: Wed Dec 15, 2004 1:58 pm
Posts: 16
Location: Prague, Czech Republic
I've just read article about bulk operations -
http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/07/20

I mean that temporary tables are not nesceseary when:
(a) delete by primary key
(b) delete by condition from that you can derive set of primary keys to delete without data in delete table

Examples:
(a) delete from Human where id=10
(b) delete from Human as human where exists(select * from Order as order where order.status='archived' and human=order.customer)

Would it be hard to have these deletes without temporary tables - there is only primary key in where condition.


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

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.