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 72FFD200B65 for ; Wed, 17 Aug 2016 10:41:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 718AF160A8C; Wed, 17 Aug 2016 08:41:22 +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 B8C2F160A86 for ; Wed, 17 Aug 2016 10:41:21 +0200 (CEST) Received: (qmail 61344 invoked by uid 500); 17 Aug 2016 08:41:21 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 61334 invoked by uid 99); 17 Aug 2016 08:41:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 08:41:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD0B62C02A5 for ; Wed, 17 Aug 2016 08:41:20 +0000 (UTC) Date: Wed, 17 Aug 2016 08:41:20 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-2162) Searcing for users using ObjectClass=person takes long MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 17 Aug 2016 08:41:22 -0000 [ https://issues.apache.org/jira/browse/DIRSERVER-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15424124#comment-15424124 ] Emmanuel Lecharny commented on DIRSERVER-2162: ---------------------------------------------- We don't assign a version until we have a clear fix. For the record, I did some test with 1000 entries, but I don't see a big difference even when I don't create the set of candidates for the {{(objectClass=person)}} filter (which was supposedly taking some time). There must be something wrong going on elsewhere, and I continue to investigate the problem. In any case, using a substring filter like {{\*xyz\*}} or even {{\*xyz}} is not a good idea. There is no solution that could be performant and cover all the use cases. > Searcing for users using ObjectClass=person takes long > ------------------------------------------------------ > > Key: DIRSERVER-2162 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2162 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 2.0.0-M20 > Reporter: John Peter > > When we do the below query the result takes long. Around 10-50 seconds. > Search base: ou=users,dc=xxx,dc=fi > Filter (&(cn=*USERNAME*)(objectClass=person)) > Scope: Subtree > However the below query returns the result immediately > Search base: ou=users,dc=xxx,dc=fi > Filter (&(cn=*USERNAME*)(objectClass=*)) > Scope: Subtree > Looking at the Partition settings it has Indexed attributes ObjectClass and cn. > First both queries took long. Then we added cn to the index and rebooted apacheDS and the second query got fast. > It seems like a bug that using ObjectClass in the query makes it slow all tough it is in the index. > It seems something similar was reported before DIRSERVER-2048, but it says it's fixed in M20 which we are using. -- This message was sent by Atlassian JIRA (v6.3.4#6332)