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 449C2200C4E for ; Thu, 23 Mar 2017 06:48:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4339D160B91; Thu, 23 Mar 2017 05:48:49 +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 8780D160B86 for ; Thu, 23 Mar 2017 06:48:48 +0100 (CET) Received: (qmail 71205 invoked by uid 500); 23 Mar 2017 05:48:47 -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 71194 invoked by uid 99); 23 Mar 2017 05:48:47 -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; Thu, 23 Mar 2017 05:48:47 +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 2A06C1AA954 for ; Thu, 23 Mar 2017 05:48:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.549 X-Spam-Level: X-Spam-Status: No, score=-98.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, USER_IN_WHITELIST=-100] 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 W_wdjHZRbHBh for ; Thu, 23 Mar 2017 05:48:46 +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 7B1895FAC6 for ; Thu, 23 Mar 2017 05:48:45 +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 6D3DFE0A31 for ; Thu, 23 Mar 2017 05:48:42 +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 BC0C7254EB for ; Thu, 23 Mar 2017 05:48:41 +0000 (UTC) Date: Thu, 23 Mar 2017 05:48:41 +0000 (UTC) From: "Rajeshbabu Chintaguntla (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PHOENIX-3681) Store local indexes in a column family per index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Mar 2017 05:48:49 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937770#comment-15937770 ] Rajeshbabu Chintaguntla edited comment on PHOENIX-3681 at 3/23/17 5:48 AM: --------------------------------------------------------------------------- [~lhofhansl] [~jamestaylor] [~sergey.soldatov] Some times users may create 10's of indexes because writes are cheaper with local indexes so having that many column families may not be good idea right. To avoid the overhead of dropping local indexes we can follow alternative way like we can drop the meta data of local indexes so that that particular index won't be usable. In the background during compaction we can skip writing that particular index data. We can utilise the skip scan filters to avoid the overhead during the compactions as well. We can set the index ids as the slots to skip reading the deleted indexes. It's in my priority list as well. PHOENIX-3566 is the issue raised for that. Same follows for views indexes as well. Wdyt? was (Author: rajeshbabu): [~lhofhansl] [~jamestaylor] [~sergey.soldatov] Some times users may create 10's of indexes because writes are cheaper with local indexes so having that many column families may not be good idea right. To avoid the overhead of dropping local indexes we can follow alternative way like we can drop the meta data of local indexes so that that particular index won't be usable. In the background during compaction we can skip writing that particular index data. We can utilise the skip scan filters to avoid the overhead during the compactions as well. We can set the index ids as the slots to skip reading the deleted indexes. It's in my priority list as well. PHOENIX-3566 is the issue raised for that. Wdyt? > Store local indexes in a column family per index > ------------------------------------------------ > > Key: PHOENIX-3681 > URL: https://issues.apache.org/jira/browse/PHOENIX-3681 > Project: Phoenix > Issue Type: Bug > Reporter: Lars Hofhansl > > Currently all local indexes are stored in a single column family. That makes maintenance (such as dropping an index) more expensive than necessary. > Let's have each local index in its own column family (or be able to declare which column family an index should go into). > As [~jamestaylor] points out, this won't work for indexes on views as there might be 1000's of them. > Another issue are covered local indexes, but I'd argue that local indexes would benefit little from being covered. (that also needs to be experimentally verified) > Local indexes in individual column families would be great to isolate any maintenance and even usage from each other. > [~rajeshbabu], [~mujtabachohan] -- This message was sent by Atlassian JIRA (v6.3.15#6346)