Thomas can this be bounded by the current transaction?


On Nov 9, 9:51 am, Angel Leon <[email protected]> wrote:
> The attached patch is a suggestion to the H2 developer.
>
> We decided to use the Lucene features in our project, currently
> FullTextLucene.java will trigger the adding and indexing of each document
> per row (indexAccess.writer.commit()), this is way too slow if you have
> existing data.
>
> This patch, instead gives a boolean parameter to the insert() method, so
> that you can decide wether or not you want this indexing happening.
> Once you're done, you can invoke a new method we've added called
> commitIndex() [you can rename that to whatever makes more sense to you if
> this name is not proper]
>
> Basically, it doesn't make sense to trigger lucene's indexing mechanism for
> each existing row, at least not in our UI driven app.
>
> If this is not the right place to submit this patch, please let me know, or
> if you know the developer it'd be great if he/she would get this email.
>
> Cheers from the FrostWire Team.
>
>  FullTextLucene.java.patch
> 3KViewDownload

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to