Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AAEDB10294 for ; Sun, 18 Aug 2013 19:07:13 +0000 (UTC) Received: (qmail 27904 invoked by uid 500); 18 Aug 2013 19:07:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 27786 invoked by uid 500); 18 Aug 2013 19:07:09 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 27551 invoked by uid 99); 18 Aug 2013 19:07:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 19:07:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gilinachum@gmail.com designates 209.85.219.41 as permitted sender) Received: from [209.85.219.41] (HELO mail-oa0-f41.google.com) (209.85.219.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 19:07:03 +0000 Received: by mail-oa0-f41.google.com with SMTP id j6so4570398oag.0 for ; Sun, 18 Aug 2013 12:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=heNpcPmR3RNluBsw4asfs5J1hmDs56ALJtLxdb1687A=; b=oAuIb1RoS/bnE+b0lA1BiOkNrkFa5KNJwCZYNxnEA0sCOdr8uUsUqbgQCImXJ8PJ08 EUraBxRA4K2+JrbrHXGExR5pYQDarwQTD5DI0sK/vP5n57/T/XBAYH6qIaj+pEUdTdg+ yYwE0BPpQX1OftQ6J7ue01B1q9VdEi6hpcVQfDxG/wD6shFwkKFm60i41uhoG/Ck/81I qHHxxPMa8n4BGD7c3DANiIC2Oh7leosBH5S8zld1KCeimxjeVEGAG3OhvDLj/uUdNTdi IKXW2fxH3z1VyPHbi7U2M836DLmYzEpqe0gsC85GaA1UNP/c5qLffia1TAetbrrzwm/P 1lcw== MIME-Version: 1.0 X-Received: by 10.182.142.129 with SMTP id rw1mr1957719obb.67.1376852802704; Sun, 18 Aug 2013 12:06:42 -0700 (PDT) Received: by 10.182.31.12 with HTTP; Sun, 18 Aug 2013 12:06:42 -0700 (PDT) Date: Sun, 18 Aug 2013 22:06:42 +0300 Message-ID: Subject: How important is single segment optimization to Search time performance? From: Gili Nachum To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11c1ccfa369e4f04e43d8603 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1ccfa369e4f04e43d8603 Content-Type: text/plain; charset=ISO-8859-1 Hi there Lucene samurai! *I was wondering how important is single segment merging for search time performance compared to a more modest merging goal like merging down to just 4 segment. * Currently my system merges every evening, it takes ~1-2 hours, and invalidates the File-system cache. What would happen if I'll reduce the merging target to just 4 segments? e.g., When searching a term, does Lucene needs to visit each segment (disk seek operation) to access the relevant posting list? If not then what's the advantage of merging down segments (besides open files limit). *Was wondering if anyone has tested # of segments against search time performance?* I should add I have ~10 indexes, at a total size of 50GB, and I use mutli-index searcher to search over them (Lucene 3.0.3 - yeah it's old I know). The index is updated every 15min. Gili Nachum. --001a11c1ccfa369e4f04e43d8603--