On Fri, Jan 31, 2014 at 4:33 PM, Nick Wellnhofer <[email protected]> wrote:
>> Are there any downsides to increasing this threshold to say 40MB?
>
> No, if you have enough memory, you can probably use a much higher value.
> Maybe Marvin can give some additional details.

It's hard to say, it might depend on CPU cache behavior.

The primary reason that global setting exists is not performance tweakery,
it's testing.

>From perl/lib/Lucy/Test.pm:

    # Set the default memory threshold for PostingListWriter to a low number
    # so that we simulate large indexes by performing a lot of PostingPool
    # flushes.
    Lucy::Index::PostingListWriter::set_default_mem_thresh(0x1000);

Marvin Humphrey

Reply via email to