On Tue, Dec 27, 2011 at 10:43 AM, Lyuba Romanchuk <lyuba.romanc...@gmail.com> wrote: > I test facets and stats in Solr 3.5 and I see that queries are running a > lot slower during inserts into index with more than 15M documents .
Are you also doing commits (or have autocommit enabled)? The first time a facet command is used for a field after a commit, certain data structures need to be constructed. To avoid slow first requests like this, you can add a request that does the faceting as a static warming query that will be run before any live queries use the new searcher. -Yonik http://www.lucidimagination.com