From issues-return-184082-apmail-hive-issues-archive=hive.apache.org@hive.apache.org Wed Apr 1 09:44:02 2020 Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 8B6B11818E for ; Wed, 1 Apr 2020 09:44:02 +0000 (UTC) Received: (qmail 57328 invoked by uid 500); 1 Apr 2020 09:44:02 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 57308 invoked by uid 500); 1 Apr 2020 09:44:02 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 57298 invoked by uid 99); 1 Apr 2020 09:44: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; Wed, 01 Apr 2020 09:44: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 1669CE2600 for ; Wed, 1 Apr 2020 09:44:00 +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 4958B780210 for ; Wed, 1 Apr 2020 09:44:00 +0000 (UTC) Date: Wed, 1 Apr 2020 09:44:00 +0000 (UTC) From: "Marton Bod (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-23067) Use batch DB calls in TxnHandler for commitTxn and abortTxns 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/HIVE-23067?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Marton Bod updated HIVE-23067: ------------------------------ Attachment: HIVE-23067.2.patch > Use batch DB calls in TxnHandler for commitTxn and abortTxns > ------------------------------------------------------------ > > Key: HIVE-23067 > URL: https://issues.apache.org/jira/browse/HIVE-23067 > Project: Hive > Issue Type: Improvement > Reporter: Marton Bod > Assignee: Marton Bod > Priority: Major > Attachments: HIVE-23067.1.patch, HIVE-23067.1.patch, HIVE-23067.1= .patch, HIVE-23067.1.patch, HIVE-23067.2.patch, HIVE-23067.2.patch > > > To reduce the number of database calls and network roundtrips, we could u= se more batching in TxnHandler, where currently in many places we call inse= rt commands in loops sequentially. > Some examples: > * openTxns (TXNS,=C2=A0REPL_TXN_MAP) > * commitTxn (COMPLETED_TXN_COMPONENTS) > * replTableWriteIdState (TXN_TO_WRITE_ID) > * allocateTableWriteIds (TXN_TO_WRITE_ID) > * .... > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)