lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Created] (LUCENE-3214) Ability to mlock certain fields from the terms dict
Date Sat, 18 Jun 2011 16:23:47 GMT
Ability to mlock certain fields from the terms dict

                 Key: LUCENE-3214
             Project: Lucene - Java
          Issue Type: Improvement
            Reporter: Michael McCandless

This is a hacked up prototype!  It works but I'm not sure how to get this to a committable

The patch invokes mlock() (tested only on Linux), locking pages from the terms dictionary
file that hold terms for a specified field.  You can only do this with MMapDirectory.

I used this to lock pages for the "id" field in the NRT stress test; it's an alternative to
MemoryCodec.  But, it requires you set up the OS to allow the app/user to lock pages in RAM.

It works very well in reducing the NRT reopen latency even when large merges are running...

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message