Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37DE419FBD for ; Wed, 13 Apr 2016 12:59:36 +0000 (UTC) Received: (qmail 38176 invoked by uid 500); 13 Apr 2016 12:59:31 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 38108 invoked by uid 500); 13 Apr 2016 12:59:31 -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 38096 invoked by uid 99); 13 Apr 2016 12:59:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 12:59:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C22AD1A0617 for ; Wed, 13 Apr 2016 12:59:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.806 X-Spam-Level: * X-Spam-Status: No, score=1.806 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_BL=0.01, RCVD_IN_MSPIKE_L3=1.899, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IWLEP9QZ-S5x for ; Wed, 13 Apr 2016 12:59:30 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9ED7D5FAFB for ; Wed, 13 Apr 2016 12:59:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 1780C5706 for ; Wed, 13 Apr 2016 06:59:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1460552368; bh=iGi6KrZ0ufSviFb052wiWs2k1Ig2naMbzTPt+9r9Iw0=; b=H DSKY8N8md1YufBk7Y6zJZkHn/y2MtAoFlHjfzzCknHKhYqfdOMmMxxBHm0Sxl/G+ hDFozSC8iU8wZXwSI2UUorvA3mNa0qiBlQUIeYRW1nvCekfZZGS0DZjqgkLzZmL6 U2toztZ8s6Hy24K3kPo1jjdwcU3FkpLmHgHNFJRJHg= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id q7aCiWRix3ND for ; Wed, 13 Apr 2016 06:59:28 -0600 (MDT) Received: from [192.168.1.107] (107.int.elyograg.org [192.168.1.107]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id D1B0B568B for ; Wed, 13 Apr 2016 06:59:28 -0600 (MDT) Subject: Re: Cache problem To: solr-user@lucene.apache.org References: <56FD255D.8070803@mdpi.com> <570BA902.9040201@mdpi.com> <570CC14C.4040906@mdpi.com> <570D9716.6040504@elyograg.org> <570DEDCC.6030106@mdpi.com> <570DFB2E.8080408@elyograg.org> <570E20C7.3040101@mdpi.com> From: Shawn Heisey Message-ID: <570E42B2.2030702@elyograg.org> Date: Wed, 13 Apr 2016 06:59:30 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <570E20C7.3040101@mdpi.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 4/13/2016 4:34 AM, Bastien Latard - MDPI AG wrote: > Thank you all again for your good and detailed answer. > I will combine all of them to try to build a better environment. > > *Just a last question...* > /I don't remember exactly when I needed to increase the java heap.../ > /but is it possible that this was for the DataImport.../ > > *Would the DIH work if it cannot "load" the temporary index into the > java heap in the full-index mode?* > I thought that's why I needed to increase this value...but I might be > confused! The default behavior on many JDBC drivers is to load the *entire* SQL result into memory *before* sending those results to the requesting application. This is the way the MySQL driver behaves by default, and the way that older versions of the Microsoft driver for SQL Server behave by default. There should be a way to tell the JDBC driver to stream the results back instead of loading them into memory. For MySQL, you just have to set the batchSize parameter in the DIH config to -1, which causes the underlying code to do "setFetchSize(Integer.MIN_VALUE)". For SQL Server, you need a recent version of the driver, where they changed the default behavior. For other databases, you may need a JDBC url parameter. Thanks, Shawn