-->
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: massindexer, progress monitor, configure
PostPosted: Tue May 25, 2010 9:48 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Hi,

just upgraded to HS 3.2 and tested the massindexer. Amazing work guys, really fast, low memory usage, just what i've been looking for :)

But, some litte issues still bothering me. What about this progressMonitor of the massindexer and/or the whole slf4j thing. I'm not really into this, and a quick look into the documentation didnt help me at all.
Is there an option that turns off the progressMonitor (or just let him print a msg every 10% (oder x documents)?


Top
 Profile  
 
 Post subject: Re: massindexer, progress monitor, configure
PostPosted: Tue May 25, 2010 4:35 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
just upgraded to HS 3.2 and tested the massindexer. Amazing work guys, really fast, low memory usage, just what i've been looking for :)

thank you, it's indeed the result of a long quest:)

Quote:
But, some litte issues still bothering me. What about this progressMonitor of the massindexer and/or the whole slf4j thing. I'm not really into this, and a quick look into the documentation didnt help me at all.

Sure, there are some open issues related to documenting this API which where postponed as we where need more feedback: release early, release often should become the new strategy soon.
Have a look into the current only implementation: org.hibernate.search.impl.SimpleIndexingProgressMonitor. It shouldn't have a great impact on performance, it only considers logging some minor stats every 50 entities.
Unfortunately while extending it is easy, it's not yet possible to replace the implementation (without recompiling Search): we would like to make sure the interface is stable before making it a public API, so please try implementing whatever you need and provide feedback on it.
Please see and comment on HSEARCH-370

Quote:
Is there an option that turns off the progressMonitor (or just let him print a msg every 10% (oder x documents)?

Either you're having a very small database and can disable it completely (set the logging level for the class to silent "info"), or if you have a huge database you likely want some feedback more often, as it could take some time to go from 20% to 20%.. The safest default I could think of is to log requently, a period of 50 seemed a good start and has proven to be negligible as performance hit compared to the actual indexing job.

You're welcome to propose alternative implementations, and this is the right time to ask for changes in the API.

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


Top
 Profile  
 
 Post subject: Re: massindexer, progress monitor, configure
PostPosted: Tue Jun 01, 2010 10:21 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Turning off the logging of the progressMonitor decreases my overall indexing process duration from 140minutes to round about 50min with a db that contains 1.1 million entrys. just fyi
(which is, btw, really really nice to see. again, thx a lot guys :) )


Top
 Profile  
 
 Post subject: Re: massindexer, progress monitor, configure
PostPosted: Tue Jun 01, 2010 11:19 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thanks for reporting that, I've added a link from HSEARCH-370 to this thread as additional motivation to improve this.

_________________
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.  [ 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.