-->
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: different between native sql and hql
PostPosted: Tue Jul 25, 2006 5:29 pm 
Beginner
Beginner

Joined: Sun May 07, 2006 2:44 pm
Posts: 33
Hey,

I have some tables that i only update the table (records events)
and dont neet to read from this tables.

once in a while (around 2 hours) i need to clean thos tables (around 600000 records).

i want to run delete low_priority but it dosnt support in hql so i run it with native sql.

do i need to consider any impacts or problem that native sql can caused?

can i add constraints to the master table that in case of delete will cascade? (can it caused to problem or conflicts with hibernate ?)

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 5:48 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
delete in sql shouldn't cause any problems. Unless ofcourse something you are going to delete is currently being used by an application in memory somewhere.

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.