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 EC0AF200CC5 for ; Tue, 11 Jul 2017 13:39:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA82D163E45; Tue, 11 Jul 2017 11:39:58 +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 6321C163E44 for ; Tue, 11 Jul 2017 13:39:58 +0200 (CEST) Received: (qmail 88127 invoked by uid 500); 11 Jul 2017 11:39:57 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 88116 invoked by uid 99); 11 Jul 2017 11:39:57 -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; Tue, 11 Jul 2017 11:39:57 +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 1F883195CBC for ; Tue, 11 Jul 2017 11:39:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.424 X-Spam-Level: ** X-Spam-Status: No, score=2.424 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-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 fZDQ7YzAo-uB for ; Tue, 11 Jul 2017 11:39:55 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C8EAB60DFD for ; Tue, 11 Jul 2017 11:39:54 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id E965E51DA2788 for ; Tue, 11 Jul 2017 04:39:53 -0700 (MST) Date: Tue, 11 Jul 2017 04:39:53 -0700 (MST) From: neerajbhatt To: user@ignite.apache.org Message-ID: <1499773193948-14624.post@n6.nabble.com> Subject: query performance degrade when adding a filter criteria (order by) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 11 Jul 2017 11:39:59 -0000 Hi All Our below query is working fine SELECT r.uniqueSkuId FROM A_CACHE.Rank as r, B_CACHE.Item as T WHERE T.id = r.id AND T.b=? AND T.c=? AND T.d=? order by r.rank desc limit 3 but when we add additional criteria (r.a=?) as below the time increase from 10 ms to ~500 ms SELECT r.uniqueSkuId FROM A_CACHE.Rank as r, B_CACHE.Item as T WHERE T.id = r.id AND r.a=? AND T.b=? AND T.c=? AND T.d=? order by r.rank desc limit 3 Thanks -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/query-performance-degrade-when-adding-a-filter-criteria-order-by-tp14624.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.