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 5D2569181 for ; Mon, 16 Apr 2012 20:58:42 +0000 (UTC) Received: (qmail 13239 invoked by uid 500); 16 Apr 2012 20:58:41 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 13190 invoked by uid 500); 16 Apr 2012 20:58:41 -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 13182 invoked by uid 99); 16 Apr 2012 20:58:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 20:58:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Mon, 16 Apr 2012 20:58:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F2C3D39AA27 for ; Mon, 16 Apr 2012 20:58:16 +0000 (UTC) Date: Mon, 16 Apr 2012 20:58:16 +0000 (UTC) From: "Claudio R (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <928402089.30329.1334609897004.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <76973248.28785.1334589378651.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3360) Problem with DataImportHandler multi-threaded 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-3360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255044#comment-13255044 ] Claudio R commented on SOLR-3360: --------------------------------- Hi James Dyer and Mikhail Khludnev, I added in logging.properties of tomcat the line below: org.apache.solr.handler.dataimport.JdbcDataSource.level=FINE And ran again in 3.6.0 with 10 threads. The select below was performed 10 times select url from video where indice_id_indice = '257933' This select of sub-entity should have been executed only one time. > Problem with DataImportHandler multi-threaded > --------------------------------------------- > > Key: SOLR-3360 > URL: https://issues.apache.org/jira/browse/SOLR-3360 > Project: Solr > Issue Type: Bug > Affects Versions: 3.6 > Environment: Solr 3.6.0, Apache Tomcat 6.0.20, jdk1.6.0_15, Windows XP > Reporter: Claudio R > > Hi, > If I use dataimport with 1 thread, I got: > > 5001 > 1000 > 0 > 2012-04-16 11:21:57 > Indexing completed. Added/Updated: 1000 documents. Deleted 0 documents. > 2012-04-16 11:23:19 > 1000 > 0:1:22.390 > > If I use datamport with 10 threads, I got: > > 0 > 10000 > 0 > 2012-04-16 11:31:43 > Indexing completed. Added/Updated: 10000 documents. Deleted 0 documents. > 2012-04-16 11:41:50 > 10000 > 0:10:7.586 > > The configuration of 10 threads consumed 10 times longer than the configuration with 1 thread. > I have 1000 records in the database. > My db-data-config.xml is shown below: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org