-->
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: QueryCachePlan InExpression and memory in a boat
PostPosted: Fri Dec 06, 2013 12:54 pm 
Newbie

Joined: Sat Dec 03, 2005 5:35 am
Posts: 11
Hi All,

Hibernate version: 4.1.7

I have an application that use SQL IN keyword with collections of 2000+ elements (may vary for each requests).
It results that QueryCachePlan store each request according to number of elements because it store it splitted. (over 400Mo in my case)
So a lot of memory is used for plan cache and won't be reused... (having the same number of elements in the InExpression is rare).

I read : https://hibernate.atlassian.net/browse/HHH-1123, quoting : "bad application design to be doing such large IN element restrictions".
Her.. maybe :) but done...

So... Not so many solution for me :
- Rewrite SQL using temporary table. Complicated at this stage of the project
- Modify QueryPlanCache to store only requests with less than X parameters

I don't think there is an easy way to replace SessionFactoryImpl nor QueryPlanCache, but if someone have a better idea that modifying Hibernate source code ?


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.