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 BA1FB8F6F for ; Fri, 9 Sep 2011 23:39:45 +0000 (UTC) Received: (qmail 36296 invoked by uid 500); 9 Sep 2011 23:39:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 36164 invoked by uid 500); 9 Sep 2011 23:39:43 -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 36153 invoked by uid 99); 9 Sep 2011 23:39:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 23:39:43 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jdcryans@gmail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-gy0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 23:39:37 +0000 Received: by gya6 with SMTP id 6so1886761gya.14 for ; Fri, 09 Sep 2011 16:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=65rEK+u9xApVnudESsJtB3NmeX6nN8FmOi17A7Rp9zU=; b=eH8SAnoDVFNe5hMj42fiijtzjJJ5ofuVZNGZZDMG39Yb+eHzJHWIWz3mT2pZwPzbSe KnKhzrKJvswpjmrWmizIRhGvq0eB22wsjTFtCcCJbP+O041Yz8ifXM0CzltSGh3bc5xt avRAmaSlwk4VbinlWyKdLkwQRmHnZgsZM27Ug= MIME-Version: 1.0 Received: by 10.101.88.16 with SMTP id q16mr2374063anl.106.1315611556314; Fri, 09 Sep 2011 16:39:16 -0700 (PDT) Sender: jdcryans@gmail.com Received: by 10.100.136.3 with HTTP; Fri, 9 Sep 2011 16:39:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Sep 2011 16:39:16 -0700 X-Google-Sender-Auth: 3PhsymYzRgqdCAvythHGkjaobmg Message-ID: Subject: Re: Using multiple column families From: Jean-Daniel Cryans To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 20k rows? If this is your only use case, you don't need HBase :) If it's 20k rows times a gazillion columns per row, then I would recommend flattening out the rows instead. If it's just one small table among others, then you probably won't be bothered by the multiple families. J-D On Thu, Sep 8, 2011 at 10:07 PM, Imran M Yousuf wrote: > Hi, > > Firstly, I have read in the mailing list before that having more than > 1 column family is not recommended. I am more interested to know > whether it is a problem in my use case as well or not. > > I have a strong entitly and it has 6 weak entities all with 1-to-many > cardinal relationship to the strong entity. Furthermore, they are all > loaded in mutually exclusive manner, i.e. if A is strong entity and > its weak entities are P, Q, R, S, T, U in that case no 2 weak entities > are accessed at once. Moreover their lifecycles are independent of > each other. My current implementation is I have one column family for > the strong entity and one for each weak entities. So for a given row I > only load one column family at a time. The obvious advantages are that > - deleting strong entity automatically deletes the weak entities as > they are a single row, delete all of a kind weak entity for a specific > weak entity is as simple as deleting all cells in a column family for > a row. Our assumption (pretty high than what we expect) is that we > will not have more than 20k rows in that table. Under these > circumstance how bad is it to have 7 column families? > > We would be glad if you would kindly share thoughts and feedback on this issue. > > Thank you, > > -- > Imran M Yousuf > Entrepreneur & CEO > Smart IT Engineering Ltd. > Dhaka, Bangladesh > Twitter: @imyousuf - http://twitter.com/imyousuf > Blog: http://imyousuf-tech.blogs.smartitengineering.com/ > Mobile: +880-1711402557 >