Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EBDA10A07 for ; Sat, 7 Dec 2013 01:39:36 +0000 (UTC) Received: (qmail 36109 invoked by uid 500); 7 Dec 2013 01:39:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36018 invoked by uid 500); 7 Dec 2013 01:39:35 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 36010 invoked by uid 500); 7 Dec 2013 01:39:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 36007 invoked by uid 99); 7 Dec 2013 01:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Dec 2013 01:39:35 +0000 Date: Sat, 7 Dec 2013 01:39:35 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5951) improve performance of adding partitions from client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841998#comment-13841998 ] Ashutosh Chauhan commented on HIVE-5951: ---------------------------------------- In explain plan or hooks ? > improve performance of adding partitions from client > ---------------------------------------------------- > > Key: HIVE-5951 > URL: https://issues.apache.org/jira/browse/HIVE-5951 > Project: Hive > Issue Type: Improvement > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Attachments: HIVE-5951.01.patch, HIVE-5951.02.patch, HIVE-5951.nogen.patch, HIVE-5951.nogen.patch, HIVE-5951.nogen.patch, HIVE-5951.patch > > > Adding partitions to metastore is currently very inefficient. There are small things like, for !ifNotExists case, DDLSemanticAnalyzer gets the full partition object for every spec (which is a network call to metastore), and then discards it instantly; there's also general problem that too much processing is done on client side. DDLSA should analyze the query and make one call to metastore (or maybe a set of batched calls if there are too many partitions in the command), metastore should then figure out stuff and insert in batch. -- This message was sent by Atlassian JIRA (v6.1#6144)