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 ADE7D200B27 for ; Wed, 22 Jun 2016 10:09:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AC403160A35; Wed, 22 Jun 2016 08:09:37 +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 012CD160A2E for ; Wed, 22 Jun 2016 10:09:36 +0200 (CEST) Received: (qmail 88821 invoked by uid 500); 22 Jun 2016 08:09:36 -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 88810 invoked by uid 99); 22 Jun 2016 08:09:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 08:09:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B8B851A52F6 for ; Wed, 22 Jun 2016 08:09:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.173 X-Spam-Level: ** X-Spam-Status: No, score=2.173 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id zYudZhP6neFJ for ; Wed, 22 Jun 2016 08:09:32 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 22F1A5F4E5 for ; Wed, 22 Jun 2016 08:09:32 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 7A67C2AE4934 for ; Wed, 22 Jun 2016 00:49:10 -0700 (PDT) Date: Wed, 22 Jun 2016 00:53:20 -0700 (PDT) From: mrinalkamboj To: user@ignite.apache.org Message-ID: <1466582000535-5783.post@n6.nabble.com> Subject: Multiple column filtering and sorting in Apache Ignite MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 22 Jun 2016 08:09:37 -0000 Following is my Poco class, my query include a set of filters on few columns, which is facilitated using the QuerySqlField attribute, further there's multiple column sorting, for which the fields are indexed, now my understanding is indexing has a role only in sorting, but in this case user can ask for Ascending or Descending and the combination of columns like "OrderId Asc,OrderName desc" - What kind of index can facilitate this kind of query ? - Can a field be indexed for both ascending and descending ? - Are the group indexes required in this case ? In my view it might not be practical to create index for all the public class OrderEntity { [QuerySqlField(IsIndexed = true)] public int OrderId { get; set; } [QuerySqlField(IsIndexed = true)] public string OrderName { get; set; } [QuerySqlField(IsIndexed = true)] public DateTime OrderDateTime { get; set; } [QuerySqlField(IsIndexed = true)] public double OrderValue { get; set; } [QuerySqlField(IsIndexed = true)] public string OrderAddress { get; set; } } -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Multiple-column-filtering-and-sorting-in-Apache-Ignite-tp5783.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.