[ 
https://issues.apache.org/jira/browse/NUTCH-2179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Johnson updated NUTCH-2179:
---------------------------------
    Comment: was deleted

(was: Correct, it should be, but is currently writing them singleton.

I'm proposing we swap the current delete function

public void delete(String key) throws IOException {
    if (delete) {
      try {
        solr.deleteById(key);  //singleton delete
        numDeletes++;
      } catch (final SolrServerException e) {
        throw makeIOException(e);
      }
    }
  }

with

public void delete(String key) throws IOException {
                if (delete) {
                        deleteURLs.add(key);
                        if (inputDocs.size() + deleteURLs.size() >= batchSize) {
                                sendRequest();
                        }
                }
        }


and abstract the actual send request with a function that can be called from 
write, delete and close.

I have a patch prepared, but I cannot get the branch to commit - I'll attempt 
again later.)

> Cleanup job for SOLR Performance Boost
> --------------------------------------
>
>                 Key: NUTCH-2179
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2179
>             Project: Nutch
>          Issue Type: Improvement
>          Components: indexer
>    Affects Versions: 1.9, 1.10, 1.11
>            Reporter: David Johnson
>            Priority: Minor
>              Labels: patch
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> During a cleanup job, index deletes are scheduled one by one, which can make 
> a large job take days



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to