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 F1FB3200BFE for ; Mon, 16 Jan 2017 20:39:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F0AFF160B41; Mon, 16 Jan 2017 19:39:32 +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 45E66160B28 for ; Mon, 16 Jan 2017 20:39:32 +0100 (CET) Received: (qmail 86285 invoked by uid 500); 16 Jan 2017 19:39:31 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 86274 invoked by uid 99); 16 Jan 2017 19:39:31 -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; Mon, 16 Jan 2017 19:39:31 +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 10D111A00F6 for ; Mon, 16 Jan 2017 19:39:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CBJ_0HYRsVLv for ; Mon, 16 Jan 2017 19:39:30 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6FE345F610 for ; Mon, 16 Jan 2017 19:39:29 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3E0D6E8673 for ; Mon, 16 Jan 2017 19:39:28 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 94EA02528B for ; Mon, 16 Jan 2017 19:39:26 +0000 (UTC) Date: Mon, 16 Jan 2017 19:39:26 +0000 (UTC) From: "Mujtaba Chohan (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3591) Group by is slower for immutable encoded table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 16 Jan 2017 19:39:33 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824490#comment-15824490 ] Mujtaba Chohan commented on PHOENIX-3591: ----------------------------------------- Few more details on this. This is with 5K dense columns and using column names that would be the first and last columns for both immutable encoded and non-encoded scheme. Generated 20K rows so data fits in OS page cache when executing query multiple times. Query {noformat} select /*+ SERIAL NO_CACHE*/ ZZZLAST,A00FIRST,sum(k1) from $T group by ZZZLAST,A00FIRST {noformat} Query time for immutable encoded is 13.2sec vs 4.0 seconds for immutable non-encoded. > Group by is slower for immutable encoded table > ---------------------------------------------- > > Key: PHOENIX-3591 > URL: https://issues.apache.org/jira/browse/PHOENIX-3591 > Project: Phoenix > Issue Type: Sub-task > Reporter: Mujtaba Chohan > Assignee: Samarth Jain > > {noformat} > select /*+ SERIAL NO_CACHE*/ c0,sum(k1) from $T group by c0 > {noformat} > This is >2X slower when compared to non-encoded table. There are 100 distinct values in c0 column. > For data and schema see data generator script in https://issues.apache.org/jira/browse/PHOENIX-3560 -- This message was sent by Atlassian JIRA (v6.3.4#6332)