From dev-return-61358-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Jun 9 00:33:04 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C8B4D180647 for ; Tue, 9 Jun 2020 02:33:03 +0200 (CEST) Received: (qmail 43755 invoked by uid 500); 9 Jun 2020 00:33:02 -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 43711 invoked by uid 99); 9 Jun 2020 00:33:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2020 00:33:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E993440F60 for ; Tue, 9 Jun 2020 00:33:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 5FF3D780C2E for ; Tue, 9 Jun 2020 00:33:00 +0000 (UTC) Date: Tue, 9 Jun 2020 00:33:00 +0000 (UTC) From: "Chinmay Kulkarni (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-5944) Modify the PK of SYSTEM.TASK to avoid full table scans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5944?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinmay Kulkarni updated PHOENIX-5944: -------------------------------------- Comment: was deleted (was: FYI [~kadir] [~gjacoby] [~jisaac] [~giskender] [~yanxinyi]) > Modify the PK of SYSTEM.TASK to avoid full table scans > ------------------------------------------------------ > > Key: PHOENIX-5944 > URL: https://issues.apache.org/jira/browse/PHOENIX-5944 > Project: Phoenix > Issue Type: Improvement > Affects Versions: 4.15.0 > Reporter: Chinmay Kulkarni > Priority: Major > Fix For: 5.1.0, 4.16.0 > > > The PK of=C2=A0SYSTEM.TASK=C2=A0is (TASK_TYPE, TASK_TS, TENANT_ID, TABLE_= SCHEM, TABLE_NAME) and the=C2=A0Task.queryTaskTable=C2=A0methods=C2=A0[1|ht= tps://github.com/apache/phoenix/blob/5f9364db7e4925229704706e148e62f4cf4ec4= c2/phoenix-core/src/main/java/org/apache/phoenix/schema/task/Task.java#L181= ]=C2=A0and=C2=A0[2|https://github.com/apache/phoenix/blob/5f9364db7e4925229= 704706e148e62f4cf4ec4c2/phoenix-core/src/main/java/org/apache/phoenix/schem= a/task/Task.java#L226]=C2=A0do a full table scan as mentioned. > Can we reorder/modify the PK to switch this to a range scan instead of a = FTS? Let's discuss if this is possible. Based on PHOENIX-5943, this change = may be to either or both of SYSTEM.TASK_QUEUE and SYSTEM.TASK_HISTORY. > Note that since this is a PK change, we need to be careful when handling = this in the upgrade path. -- This message was sent by Atlassian Jira (v8.3.4#803005)