-->
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.  [ 8 posts ] 
Author Message
 Post subject: Once Again : Out of Mem + ScrollableResults + Sort
PostPosted: Fri Nov 14, 2008 6:59 am 
Newbie

Joined: Sun May 14, 2006 7:31 am
Posts: 10
All,
I've encoutered a java heap space issue while using

Query q = null;

[...] //create an org.apache.lucene.search.Query

FullTextSession fullTextSession = Search.createFullTextSession(session);
FullTextQuery ftq = fullTextSession.createFullTextQuery(q, entityClass);
ftq.setSort(new Sort(new SortField(CatalogItem.ATTR_ID, SortField.STRING)));
scrollableResults = ftq.scroll(ScrollMode.FORWARD_ONLY); //WIth BIG AMOUNT of results thi will CRASH
scrollableResults.beforeFirst();

F.i., this target a database table with an average of 700.000 tuples, which are indexed in lucene through the Hibernate Search fw. Data aren't stored in lucene stuffs (only database maintains the data set).

Isn't a way to scroll a result set without keeping all in-memory ? Is this possible with a Sort constraint ?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 3:24 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thanks for telling this, I'll try reproducing it.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 3:41 pm 
Newbie

Joined: Sun May 14, 2006 7:31 am
Posts: 10
Great !

Please keep me up-to-date...

If you create a jira ticket could you, please, send it to me the ID (MP or on this forum f.i.). It's more convenient than the forum to keep the track ^^.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 3:44 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
of course!
could you tell use which database, JDBC driver and versions of Hibernate + Hibernate Search ?
Did you get this in a standalone app or in an application server?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 4:01 pm 
Newbie

Joined: Sun May 14, 2006 7:31 am
Posts: 10
Databases :
Oracle 10-11g + spatial cartridge
Postgresql >8.3 + postgis 1.3 (I think)

Latest Hibernate GA jars version

It runs in tomcat (in my test) but several app servers are targetted jboss, oracle, weblogic f.i.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 6:48 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
well you can't use all Hibernate GA, does this mean you use Search 3.1CR1 I guess? it's the only compatible with the latest core GA.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 9:35 am 
Newbie

Joined: Sun May 14, 2006 7:31 am
Posts: 10
To clarify ^^ here are my declared dependencies :

<!-- hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.6.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.1.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.0.1.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.0.0.ga</version>
</dependency>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 11:53 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thanks
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-310

_________________
Sanne
http://in.relation.to/


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