lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Majaranta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2548) Multithreaded faceting
Date Thu, 26 May 2011 19:43:48 GMT

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

Janne Majaranta commented on SOLR-2548:
---------------------------------------

The attached patch adds initial multithreading support for faceting. The patch simply wraps
the facet counting methods per field into java.util.concurrent.Callable instances and executes
these with a ExecutorService having a threadpool-size equal to the number of processors reported
by the runtime.

Seems like this adds quite nice speed boosts when faceting over multiple fields. In initial
tests (with a patched SOLR 3.1 instance) the faceting speed was about 2x-8x faster with both
faceting methods, enum and fc.



> Multithreaded faceting
> ----------------------
>
>                 Key: SOLR-2548
>                 URL: https://issues.apache.org/jira/browse/SOLR-2548
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 3.1
>            Reporter: Janne Majaranta
>            Priority: Minor
>              Labels: facet
>         Attachments: SOLR-2548.patch, SOLR-2548_for_31x.patch
>
>
> Add multithreading support for faceting.

--
This message is automatically generated by JIRA.
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