-->
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: how long does it take the listeners to recognize?
PostPosted: Tue Dec 22, 2009 10:57 am 
Regular
Regular

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

i'm using HS 3.0.1, so i configured my listeners like this:
Code:
   <event type="post-update">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>
   <event type="post-insert">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>
   <event type="post-delete">
      <listener class="org.hibernate.search.event.FullTextIndexEventListener"/>
   </event>


If i now insert something new in my DB, how long does it take the listeners to realize that? Is it possible to configure this intervall?


Top
 Profile  
 
 Post subject: Re: how long does it take the listeners to recognize?
PostPosted: Tue Dec 22, 2009 2:51 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
This are event listeners. They fire when the transaction commits. There is no configurable delay. If you want a delay you might want to look at a master/slave setup via JMS as described in the online documentation.

--Hardy


Top
 Profile  
 
 Post subject: Re: how long does it take the listeners to recognize?
PostPosted: Wed Dec 23, 2009 9:04 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
hardy.ferentschik wrote:
They fire when the transaction commits.


Thats just what i want to know, thx!


Top
 Profile  
 
 Post subject: Re: how long does it take the listeners to recognize?
PostPosted: Tue Jan 05, 2010 9:48 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Just another question belonging to this topic:
If i add an entry to my hibernate, the event fires and i am able to find the entry (just in time) with the help of HS within my application. But when i (just a few seconds later) reopen the index in luke, i wont find the new entry there. Is it first written into memory, and stored to my FSDirectory later on?

edit: ok, took about 2 to 3 minutes. just my impatience. sry 4 that.


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.