lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4687) Lazily initialize TermsEnum in BloomFilterPostingsFormat
Date Thu, 17 Jan 2013 14:14:13 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556190#comment-13556190
] 

Commit Tag Bot commented on LUCENE-4687:
----------------------------------------

[branch_4x commit] Simon Willnauer
http://svn.apache.org/viewvc?view=revision&revision=1434672

LUCENE-4687: Lazily initialize TermsEnum in BloomFilterPostingsFormat

                
> Lazily initialize TermsEnum in BloomFilterPostingsFormat
> --------------------------------------------------------
>
>                 Key: LUCENE-4687
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4687
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/codecs
>    Affects Versions: 4.0, 4.1
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.2, 5.0
>
>         Attachments: LUCENE-4687.patch, LUCENE-4687.patch
>
>
> BloomFilteringPostingsFormat initializes its delegate TermsEnum directly inside the Terms#iterator()
call which can be a pretty heavy operation if executed thousands of times. I suspect that
bloom filter postings are mainly used for primary keys etc. which in turn is mostly a seekExact.
Given that, most of the time we don't even need the delegate termsenum since most of the segments
won't contain the key and the bloomfilter will likely return false from seekExact without
consulting the delegate. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message