-->
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.  [ 4 posts ] 
Author Message
 Post subject: Optimized fetching (no cache)
PostPosted: Fri Sep 30, 2005 3:24 am 
Newbie

Joined: Thu Sep 29, 2005 8:00 am
Posts: 4
Hi all,
In my application I cant maintain any cache, even transaction level cache is not there, now... if I use HQL, in the debug logs I oftenly see a big structure printed which looks like: is generated while parsing the HQL and there is no such thing if I use native SQL query, I think though not sure that CPU usage should shoot up during this parsing (is it so..? or is it a one time thing) and in this scenario of mine where there is no cache and no session management for a particular object what would be the best fetch strategy I meant among criteria query, native SQL query and HQL query.

bye
Vivek


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 4:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Sorry, but I have no idea of what you just asked about.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: HQL
PostPosted: Fri Sep 30, 2005 10:32 am 
Newbie

Joined: Thu Sep 29, 2005 8:00 am
Posts: 4
sorry for the confusion.:)
My question was simply : To parse the HQL and generate the sql statement (that goes to the rdb) is the computing (resources cpu) required too much, If yes then does this parsing occurs one time for a HQL statement and is cached somewhere even if I disable the transaction level cache (or is it done everytime if both first and second level caching is disabled).

bye
vivek

ps. feel free to clarify any other confusion.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 10:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we cache parsed HQL queries yes.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.