[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-361) Only index an entity if an indexed property has changed

Erel Magnus (JIRA) noreply at atlassian.com
Thu May 14 07:47:15 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33164#action_33164 ] 

Erel Magnus commented on HSEARCH-361:
-------------------------------------

One more option - which is the one I actually implemented - is to implement a dirty bit on the application so that it is aware of modifications that should cause reindexing. It was a bit of work but I think this works best and has the best performance.

What might be helpful is that fieldbridge has an additional method called isDrity and then I would have had to implement it from the begining and take care of it rather than discover it afterwards.




> Only index an entity if an indexed property has changed
> -------------------------------------------------------
>
>                 Key: HSEARCH-361
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-361
>             Project: Hibernate Search
>          Issue Type: New Feature
>            Reporter: Emmanuel Bernard
>             Fix For: 3.2.0
>
>
> PostUpdateEvent has state and oldState
> and EntityPersister has getPropertyNames() and findDirty()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list