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 38915200CF3 for ; Wed, 30 Aug 2017 07:03:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3734C16843C; Wed, 30 Aug 2017 05:03:12 +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 7CFBC168439 for ; Wed, 30 Aug 2017 07:03:11 +0200 (CEST) Received: (qmail 81363 invoked by uid 500); 30 Aug 2017 05:03:10 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 81351 invoked by uid 99); 30 Aug 2017 05:03:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2017 05:03:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4FB0AC30BD for ; Wed, 30 Aug 2017 05:03:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id UNMDLyi9ydDi for ; Wed, 30 Aug 2017 05:03:07 +0000 (UTC) Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 76A3B60CE2 for ; Wed, 30 Aug 2017 05:03:06 +0000 (UTC) Received: by mail-ua0-f177.google.com with SMTP id 105so15926894uad.3 for ; Tue, 29 Aug 2017 22:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=cft3GHMeb1PLpGPeV1aLEqRvSdMxzWSezGDyo0vdw8g=; b=O8LeK4rbvwQEr0TdFKHBfSMb3i5iTmWSMddcH2SvqvQDugftQDAyT4JHDoxJcEK+fG Uf/mlNcBDTG+UbPsFoojXmbyHvcCCrnSaYZHHEBPEF8y/hKR8cTLF9uPIsTCFZ0zaurH fwhpCZYFxjTK5x4oSRadCNZauRondc1d/cUqzdbD6tgR2Wm3bpWwUzAfUYBCcvpnffQl P2mTSrplRKcPxlYmhH5Cof1ZmbCb3oeyfrm1R0KFEkqrdiPQZRh+/MzOyzoQCVmelr+t YB92TJBM/MNsept1iQipd0IjodHnRqoK0/hJN66+RD4vGSf1EBehwsBhf5P5/KpWFXeU nBPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=cft3GHMeb1PLpGPeV1aLEqRvSdMxzWSezGDyo0vdw8g=; b=cx8bWSiGwE4tPZ+6ic5V3t2IHSkbGNV0aTN+myVblXDNK2mXnsF04xoei1tMpFWro/ gAhtWUbhYNaqKWoqJltV2ix5d65bShgj+oqUo6YyhuzegkbtSwv9zXnigqnZ0UGKzu5Q rD5fuAA3QvPp+Vf9u6Jkena7GqO4HLG0TUbB7JlK5Lm0WHcfLz0Sn12c4oJONtEJXgr9 KOOs09PZiYqD/WreewTQ28xxhfjeRdugShHEKM9eF2vLsvGoaRJEETGhhEodw2BIiPcM ZzN4aVoEVYZU6GQNG3OpXZzc1paBedV9+MacL+WXImZVmfeBe1XaU9gYwsnuujtfbBvh RC1g== X-Gm-Message-State: AHYfb5id2Ahx8oaMFavu+MgxESpY7nupDYJ0hk1/C5wOWtFeqLAcpQaJ sCt0eAyIaG1Kq26UxPqPk31RINMbjOOe X-Received: by 10.159.39.35 with SMTP id a32mr190668uaa.151.1504069384963; Tue, 29 Aug 2017 22:03:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.178.12 with HTTP; Tue, 29 Aug 2017 22:03:04 -0700 (PDT) In-Reply-To: References: From: Chetan Mehrotra Date: Tue, 29 Aug 2017 22:03:04 -0700 Message-ID: Subject: Re: slowness accessing lucene results To: users@jackrabbit.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Wed, 30 Aug 2017 05:03:12 -0000 The query can be slow due to multiple reasons 1. Copy-On-Write support is not enabled 2. Some of the JCR query constraints may not be getting mapped to Lucene index i.e. index definition does not have full coverage of query constraints causing quite a few paths to get filtered out. So actual number of rows accessed may be large but only few of them qualify all criteria at query engine level. This can be confirmed by query explanation output 3. Or lots of filtering happening due to access control. Does the performance remains same with admin user? Chetan Mehrotra On Mon, Aug 28, 2017 at 10:02 AM, Jason Bailey wrote: > Hi all, > > I'm tracking down a problem I'm currently experiencing when my queries use the lucene index on oak 1.2.18. Here are the figures that I get from the acs commons tool that breaks down queries. > > "executeTime": 0 > "getNodesTime": 3279 > "count": 2949 > "countTime": 349807 > "totalTime": 353086 > > In essence, it's taking me about 6 minutes to iterate through less than 3000 results. Does anyone have any ideas on root cause? > > -Jason