[
https://issues.apache.org/jira/browse/SOLR-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212760#comment-13212760
]
Uwe Schindler commented on SOLR-3142:
-------------------------------------
any optimizing after a full import over a non-empty index is no longer really
needed in Lucene (even if you do a IndexWriter.deleteAll() before as the
fullimport does). Once IndexWriter merges (or on close or commit) and detects a
segment only contains of deleted documents it will drop it. This was indeed not
true in the past, but since Lucene 3.1 or like that it is.
> remove O(n^2) slow slow indexing defaults in DataImportHandler
> --------------------------------------------------------------
>
> Key: SOLR-3142
> URL: https://issues.apache.org/jira/browse/SOLR-3142
> Project: Solr
> Issue Type: Bug
> Reporter: Robert Muir
> Assignee: Robert Muir
> Fix For: 3.6, 4.0
>
> Attachments: SOLR-3142.patch
>
>
> By default, dataimporthandler optimizes the entire index when it commits.
> This is bad for performance, because it means by default its doing a very
> heavy index-wide operation even for an incremental update... essentially
> O(n^2) indexing.
> All that is needed is to set optimize=false by default. If someone wants
> to optimize, they can either set optimize=true or explicitly optimize
> themselves.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]