Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 71387 invoked from network); 3 Nov 2008 15:48:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2008 15:48:11 -0000 Received: (qmail 55800 invoked by uid 500); 3 Nov 2008 15:48:10 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 55771 invoked by uid 500); 3 Nov 2008 15:48:10 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 55760 invoked by uid 99); 3 Nov 2008 15:48:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 07:48:10 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 15:46:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kx1eN-00011N-Ss for solr-user@lucene.apache.org; Mon, 03 Nov 2008 07:47:31 -0800 Message-ID: <20305117.post@talk.nabble.com> Date: Mon, 3 Nov 2008 07:47:31 -0800 (PST) From: sunnyfr To: solr-user@lucene.apache.org Subject: Re: XML vs mysql import with DataImportHandler In-Reply-To: <69de18140806100557l51dfd4a0uff1985ac4b831e81@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: johanna.34@gmail.com References: <69de18140806100557l51dfd4a0uff1985ac4b831e81@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Shalin, * I would like to know if you just used batchsize = -1. When I do that I use all Mysql's memory and it's a problem for the database and other process on it like update insert ... It will keep my database busy for 10hours, it's too much, is there a way to manage it differently ? Thanks a lot, Shalin Shekhar Mangar wrote: > > Hi Rusli, > > Without going into specifics, I can tell you that we're using > DataImportHandler successfully in production with many millions of > documents > being imported from databases. Try it out and let us know if you face any > problems. DataImportHandler will be part of Solr 1.3 (the next release) > and > may be committed quite soon after which you may not need to fiddle with > patches. > > Disclaimer: Since I'm one of the developers, I may be biased :) > > On Tue, Jun 10, 2008 at 6:11 PM, Rusli Ruslakall > > wrote: > >> I wanted to see what people think about using DataImportHandler and >> importing directly from mysql rather than with XML. >> >> I have already programmed mysql -> XML in PHP and configured Solr to >> import it when I realized I could use DataImportHandler and skip the >> XML stage. Are there any negatives of using DataImportHandler? I would >> have to use the patch that complicates the process I guess when its >> kind of tempting to try to use Solr as much vanilla as possible. >> >> What is the general method when using database information? >> > > > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/XML-vs-mysql-import-with-DataImportHandler-tp17754471p20305117.html Sent from the Solr - User mailing list archive at Nabble.com.