On 1/21/2015 9:13 AM, Nitin Solanki wrote:
> Thanks. Great Explanation.. One more thing I want to ask. Which is best
> doing only hard commit or both hard and soft commit? I want to index 21 GB
> of data.

My recommendations for the autoCommit settings are on that URL that I
linked - maxTime set to five minutes with openSearcher set to false.  It
also has a maxDocs setting ... you would need to come up with a
reasonable setting for that, or just leave it out.  That takes care of
all hard commit requirements as they relate to the transaction log.

Aside from that, I would recommend using soft commits (either explicit
or autoSoftCommit) for document visibility.  Hard commits with
opensearcher=true work fine, but soft commits have a *little* bit less
impact.  It would be up to you to decide when and how often to do that,
but I wouldn't do it more frequently than once a minute unless you can
take steps to make those soft commits happen REALLY fast.  Making
commits happen faster is a separate discussion.

Further reading about commits and the transaction log:

http://lucidworks.com/blog/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/

Thanks,
Shawn

Reply via email to