Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 88682 invoked from network); 19 Mar 2011 16:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Mar 2011 16:31:25 -0000 Received: (qmail 48152 invoked by uid 500); 19 Mar 2011 16:31:24 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 48121 invoked by uid 500); 19 Mar 2011 16:31:24 -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 48113 invoked by uid 99); 19 Mar 2011 16:31:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Mar 2011 16:31:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,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 yuzhihong@gmail.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Mar 2011 16:31:19 +0000 Received: by fxm18 with SMTP id 18so5824338fxm.14 for ; Sat, 19 Mar 2011 09:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=paXyHpiOX32CRW2PxbsCtg3cdHIdVd1zYSdDdrcLrIk=; b=IntUwpzVJMYkLtK4BNFfDIp27kwBYT3KZJWVAyT5taMF8xsSQOVLkEBJ2aelsrZl2a ntd2m/55mKTKD4VJz+ur5NqxTyx/XIirFfKc+UUsmGHGZe6jTqVSugzlQoyG3JUzXWT8 8dIy3tW9N4J2J3RQ4yIOQTnhqbVnAttp+xMqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cCNBqNWl0ut6pxDoVuUUmA0UYxulAISIMFdrZCNqGgxPa7pN7xWoM+tUEk25t0bXZ5 xnuz2EGpJ84VLQ337Lc0JhaxH2LI+q1k7+W5U2QZ98mEYSmFDBFjasclZX3w0v6PUwV4 bW1kjq5n+jXhCJCNJZtWEBBOiF4w1hLw2iHdc= MIME-Version: 1.0 Received: by 10.223.97.196 with SMTP id m4mr1379089fan.105.1300552258437; Sat, 19 Mar 2011 09:30:58 -0700 (PDT) Received: by 10.223.83.2 with HTTP; Sat, 19 Mar 2011 09:30:58 -0700 (PDT) In-Reply-To: <1300550031.7248.10.camel@niels-laptop> References: <1300550031.7248.10.camel@niels-laptop> Date: Sat, 19 Mar 2011 09:30:58 -0700 Message-ID: Subject: Re: Newbie question concerning schema design From: Ted Yu To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001517491d5460424f049ed86bd1 --001517491d5460424f049ed86bd1 Content-Type: text/plain; charset=ISO-8859-1 See: http://search-hadoop.com/m/zbKmE14o0Js/wide+tall+hbase+table&subj=Re+Parent+child+relation+go+vertical+horizontal+or+many+tables+ You can also search for related discussion on tall vs. wide tables. On Sat, Mar 19, 2011 at 8:53 AM, Niels Nuyttens wrote: > Hi all, > > I'm need a database scaled for large datasets and high throughput. HBase > seemed like the way to go. However, while designing my database schema I > started to doubt my choice, due to the conversion of the current > relational schema to a NoSQL variant. I can't get my head around the > efficient implementation of many-to-many relations. > > For example: Users and Roles. How would you model that for HBase. I was > thinking about storing associated roles in a column of a user row, and > vice versa. > > Furthermore there are lots of one-to-many relations that also need > converting. > > So, in conclusion, my question is: is it possible to convert a > relation-oriented schema to a nosql one? If so, how can this modeling be > done efficiently? > > Lots of thanks, > > Niels > > --001517491d5460424f049ed86bd1--