Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D34AC9DCA for ; Wed, 22 Feb 2012 01:56:40 +0000 (UTC) Received: (qmail 6147 invoked by uid 500); 22 Feb 2012 01:56:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 6113 invoked by uid 500); 22 Feb 2012 01:56:39 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 6105 invoked by uid 99); 22 Feb 2012 01:56:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 01:56:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of doug.meil@explorysmedical.com designates 216.32.181.184 as permitted sender) Received: from [216.32.181.184] (HELO ch1outboundpool.messaging.microsoft.com) (216.32.181.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 01:56:32 +0000 Received: from mail32-ch1-R.bigfish.com (10.43.68.254) by CH1EHSOBE012.bigfish.com (10.43.70.62) with Microsoft SMTP Server id 14.1.225.23; Wed, 22 Feb 2012 01:56:06 +0000 Received: from mail32-ch1 (localhost [127.0.0.1]) by mail32-ch1-R.bigfish.com (Postfix) with ESMTP id D2477802B3 for ; Wed, 22 Feb 2012 01:56:05 +0000 (UTC) X-SpamScore: -11 X-BigFish: PS-11(zzbb2dI9371I1432N98dKzz1202hzz8275ch8275bh8275dhz2fh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:157.56.244.181;KIP:(null);UIP:(null);IPV:NLI;H:CH1PRD0410HT002.namprd04.prod.outlook.com;RD:none;EFVD:NLI Received-SPF: pass (mail32-ch1: domain of explorysmedical.com designates 157.56.244.181 as permitted sender) client-ip=157.56.244.181; envelope-from=doug.meil@explorysmedical.com; helo=CH1PRD0410HT002.namprd04.prod.outlook.com ;.outlook.com ; Received: from mail32-ch1 (localhost.localdomain [127.0.0.1]) by mail32-ch1 (MessageSwitch) id 1329875748920481_3217; Wed, 22 Feb 2012 01:55:48 +0000 (UTC) Received: from CH1EHSMHS030.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.231]) by mail32-ch1.bigfish.com (Postfix) with ESMTP id DA6754111E for ; Wed, 22 Feb 2012 01:54:07 +0000 (UTC) Received: from CH1PRD0410HT002.namprd04.prod.outlook.com (157.56.244.181) by CH1EHSMHS030.bigfish.com (10.43.70.30) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 22 Feb 2012 01:54:03 +0000 Received: from CH1PRD0410MB392.namprd04.prod.outlook.com ([169.254.11.82]) by CH1PRD0410HT002.namprd04.prod.outlook.com ([10.255.147.37]) with mapi id 14.16.0117.001; Wed, 22 Feb 2012 01:54:07 +0000 From: Doug Meil To: "user@hbase.apache.org" Subject: Re: hbase delete operation is very slow Thread-Topic: hbase delete operation is very slow Thread-Index: AQHM8Nram4jQkB80MEGHIY7SdfIxxJZHn4MAgABzk4D//8EYAA== Date: Wed, 22 Feb 2012 01:54:07 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.147.4] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: explorysmedical.com X-Virus-Checked: Checked by ClamAV on apache.org I don't think write-buffering is an option because that's Put-only the last time I looked, but the advice I put in the book is to use the delete(List). He'll have to keep track of the List himself and determine when the batch should be sent, but it's a lot better than one at a time. On 2/21/12 7:39 PM, "Stack" wrote: >On Tue, Feb 21, 2012 at 2:45 PM, Doug Meil > wrote: >> >> Hi there- >> >> You probably want to see this... >> >> http://hbase.apache.org/book.html#perf.deleting >> >> .. that particular method doesn't use the write-buffer and is submitting >> deletes one-by-one to the RS's. >> >> > >Do what Doug suggests. Sounds like you are setting up a Map per row >and then per row, figuring whether to Delete. If a Delete, you do an >invocation per. Where are you getting your table instance from? Is >it created each time? And as per Doug, are you write buffering your >deletes? > >St.Ack >