Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6157B7B0C for ; Tue, 23 Aug 2011 21:04:54 +0000 (UTC) Received: (qmail 58389 invoked by uid 500); 23 Aug 2011 21:04:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 58308 invoked by uid 500); 23 Aug 2011 21:04:52 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 58015 invoked by uid 99); 23 Aug 2011 21:04:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:04:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:04:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 90285CCE0C for ; Tue, 23 Aug 2011 21:04:28 +0000 (UTC) Date: Tue, 23 Aug 2011 21:04:28 +0000 (UTC) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Message-ID: <1475605933.6751.1314133468587.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2119504037.1828.1311025618070.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2664) Disable/enable autocommit on the fly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089760#comment-13089760 ] Yonik Seeley commented on SOLR-2664: ------------------------------------ Rather than disabling autoCommit globally (for all clients), shouldn't it just disable it for that particular client? A different client may be adding some time sensitive documents. We could add a "batch=true" that is a higher level concept, and does the following: - won't trigger autocommits - updates aren't guaranteed to be seen by real-time-get (and thus logging all of the document stored fields wouldn't be necessary) Another random thought: if an explicit "commit=true" is specified in the URL, perhaps auto commit could be disabled? That could either take the place of a "batch" parameter, or at least imply "batch=true". > Disable/enable autocommit on the fly > ------------------------------------ > > Key: SOLR-2664 > URL: https://issues.apache.org/jira/browse/SOLR-2664 > Project: Solr > Issue Type: New Feature > Components: update > Affects Versions: 4.0 > Reporter: Simon Rosenthal > Priority: Minor > Fix For: 4.0 > > Attachments: SOLR-2664.patch > > > There are occasions when although autocommit is configured, it would be desirable to disable it temporarily - for instance when batch adding/updating a set of documents which should be committed atomically (e.g. a set of price changes). > The patch adds and commands to XMLUpdateHandler, and also adds a disableAutoCommit=true|false attribute to the element - this will disable autocommit until the terminating at the end of the XML document is reached. > At present, the autocommit state will not survive a core reload. > It should be possible to extend this functionality to SolrJ, CSVUpdatehandler ( and JSONUpdateHandler ?) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org