Solr查询调优三:facet.threads

This param will cause loading the underlying fields used in faceting to be executed in parallel with the number of threads specified. Specify as facet.threads=N where N is the maximum number of threads used. Omitting this parameter or specifying the thread count as 0 will not spawn any threads, and only the main request thread will be used. Specifying a negative number of threads will create up to Integer.MAX_VALUE threads.

facet.threads指定执行facet查询时,并行执行的线程数量。
facet.threads默认为1或者指定为0时,在执行facet的时候只有一个单线程处理。当设置 facet.threads为N时,就会指定最大N个线程执行。当设置为-1时,等于设置为Interger.MAX_VALUE.

发表评论

电子邮件地址不会被公开。 必填项已用*标注