Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B7135200AE4 for ; Thu, 26 May 2016 05:40:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B5DBA160A2E; Thu, 26 May 2016 03:40:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D6E10160A29 for ; Thu, 26 May 2016 05:40:22 +0200 (CEST) Received: (qmail 81527 invoked by uid 500); 26 May 2016 03:40:21 -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 81515 invoked by uid 99); 26 May 2016 03:40:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 03:40:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 13A261804C3 for ; Thu, 26 May 2016 03:40:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BtfnffdHW1LF for ; Thu, 26 May 2016 03:40:18 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E2AFB5F4E6 for ; Thu, 26 May 2016 03:40:17 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id j1so105341812oih.3 for ; Wed, 25 May 2016 20:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=ojR67Cbb+OY5aD1rSpH5+ZzFfGlXR5XxmnFXpZiSgnk=; b=mK6BFAyzzIkCR7H8Mk1mwtTW/sqk8DqNzuXl2MH3BS91wSnN7DO+J0+WlalZnzxK6I nGnJnfYmRbv/jTemSO+THzr1y1Mq3b6zWsZR69C5jjR/LGvdb6RpZVLpz+Abp1CfcLDy ARNjJAmAdlGh/HKxT5lIY6/DUhoTXINcEckKKko0Ksik9HSIBkM8TUX5FT3nj+XwYl/+ M++tvYCOwXHe1Qz8GutwiPVg/IxuprD71sbjYRXIiP840Y1rRCDKha0Y5+2Q09bMVEHy XNt72dQfOBBnfEoXqw3xBq0xO/TgG2BTUuwp92n6D6wzxejux4vPqsqkMVZV+nJEJAqz wvdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=ojR67Cbb+OY5aD1rSpH5+ZzFfGlXR5XxmnFXpZiSgnk=; b=XQ1mFy6wm2HR+BFXVmdXPXqS5RfAB9FXE2o9BX2KaFJwRCNA773nd7lAWOTm4TQQvQ UadrLG3fVlg0sWhdwr0FDyEDu7+YZ/IXSDj5c7x7fqYLxXni1viFSbVJ22UMIChF4txR QFnJKemveZ5NW8F29qW58zDUJPZiBZRtKCGZk1EG/Qp3QkM3sbQ+iPpsskMKJ0MUduay dEuxXlyPTeurSrTHVY8C2MHg3/JPHyGHvPxdVar7oQ8btxsH99SeyOZBCyc4A7AMIGF5 gnztvIt93jmn9V+PTZ3OEBsPjPLslbNB7G9KJ0GS2qgXIGAjXCOAA3VBD5IiI8wyug5e 42UQ== X-Gm-Message-State: ALyK8tK6ywx7QR5XEWleNieSnfpKWdZTf8MQGZGKG80Fh71wl/oEXCiOvRnj8OKFmr+695rx6GysnzhN+M4ZzA== MIME-Version: 1.0 X-Received: by 10.202.220.87 with SMTP id t84mr4075444oig.57.1464234016820; Wed, 25 May 2016 20:40:16 -0700 (PDT) Received: by 10.182.55.101 with HTTP; Wed, 25 May 2016 20:40:16 -0700 (PDT) In-Reply-To: References: <1464618022.104763.1464133950046.JavaMail.yahoo@mail.yahoo.com> Date: Wed, 25 May 2016 20:40:16 -0700 Message-ID: Subject: Re: debugging solr query From: Jay Potharaju To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113d30b270d83a0533b68c40 archived-at: Thu, 26 May 2016 03:40:23 -0000 --001a113d30b270d83a0533b68c40 Content-Type: text/plain; charset=UTF-8 Any links that illustrate and talk about solr internals and how indexing/querying works would be a great help. Thanks Jay On Wed, May 25, 2016 at 6:30 PM, Jay Potharaju wrote: > Hi, > Thanks for the feedback. The queries I run are very basic filter queries > with some sorting. > > q:*:*&fq=(dt1:[date1 TO *] && dt2:[* TO NOW/DAY+1]) && fieldA:abc && > fieldB:(123 OR 456)&sort=dt1 asc,field2 asc, fieldC desc > > I noticed that the date fields(dt1,dt2) are using date instead of tdate > fields & there are no docValues set on any of the fields used for sorting. > > In order to fix this I plan to add a new field using tdate & docvalues > where required to the schema & update the new columns only for documents > that have fieldA set to abc. Once the fields are updated query on the new > fields to measure query performance . > > > - Would the new added fields be used effectively by the solr index > when querying & filtering? What I am not sure is whether only populating > small number of documents(fieldA:abc) that are used for the above query > provide performance benefits. > - Would there be a performance penalty because majority of the > documents(!fieldA:abc) dont have values in the new columns? > > > Thanks > Jay > > On Tue, May 24, 2016 at 8:06 PM, Erick Erickson > wrote: > >> Try adding debug=timing, that'll give you an idea of what component is >> taking all the time. >> From there, it's "more art than science". >> >> But you haven't given us much to go on. What is the query? Are you >> grouping? >> Faceting on high-cardinality fields? Returning 10,000 rows? >> >> Best, >> Erick >> >> On Tue, May 24, 2016 at 4:52 PM, Ahmet Arslan >> wrote: >> > >> > >> > Hi, >> > >> > Is it QueryComponent taking time? >> > Ot other components? >> > >> > Also make sure there is plenty of RAM for OS cache. >> > >> > Ahmet >> > >> > On Wednesday, May 25, 2016 1:47 AM, Jay Potharaju < >> jspotharaju@gmail.com> wrote: >> > >> > >> > >> > Hi, >> > I am trying to debug solr performance problems on an old version of >> solr, >> > 4.3.1. >> > The queries are taking really long -in the range of 2-5 seconds!!. >> > Running filter query with only one condition also takes about a second. >> > >> > There is memory available on the box for solr to use. I have been >> looking >> > at the following link but was looking for some more reference that would >> > tell me why a particular query is slow. >> > >> > https://wiki.apache.org/solr/SolrPerformanceProblems >> > >> > Solr version:4.3.1 >> > Index size:128 GB >> > Heap:65 GB >> > Index size:75 GB >> > Memory usage:70 GB >> > >> > Even though there is available memory is high all is not being used ..i >> > would expect the complete index to be in memory but it doesnt look like >> it >> > is. Any recommendations ?? >> > >> > -- >> > Thanks >> > Jay >> > > > > -- > Thanks > Jay Potharaju > > -- Thanks Jay Potharaju --001a113d30b270d83a0533b68c40--