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 26A1B9760 for ; Thu, 2 Feb 2012 22:38:02 +0000 (UTC) Received: (qmail 95451 invoked by uid 500); 2 Feb 2012 22:38:00 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95308 invoked by uid 500); 2 Feb 2012 22:37:59 -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 95300 invoked by uid 99); 2 Feb 2012 22:37:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 22:37:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jdcryans@gmail.com designates 209.85.161.169 as permitted sender) Received: from [209.85.161.169] (HELO mail-gx0-f169.google.com) (209.85.161.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 22:37:52 +0000 Received: by ggnu2 with SMTP id u2so2130684ggn.14 for ; Thu, 02 Feb 2012 14:37:32 -0800 (PST) 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=XPTMQiLlc1YnJh/qOp5spUjEkofdRYSahLc62aUWVCQ=; b=anEd1EmlmPP15fZHmQtvbHZfMSckwNsVN6nLMfIAKymaOLYjKsZChIBuC11wfrvRc7 PK6oZuI6fJtxZewzWaOyjs4p7ESIj+k7Q91t7E9qpCX3Ze5u/QddUrWtfOOrxGB3Vn5W oPCy7h082ovgjusfdkIghlk/PZt6XhO/G3K2U= MIME-Version: 1.0 Received: by 10.101.162.19 with SMTP id p19mr2262840ano.58.1328222252170; Thu, 02 Feb 2012 14:37:32 -0800 (PST) Sender: jdcryans@gmail.com Received: by 10.100.208.17 with HTTP; Thu, 2 Feb 2012 14:37:32 -0800 (PST) In-Reply-To: <4F296F8A.5000804@gmail.com> References: <4F296F8A.5000804@gmail.com> Date: Thu, 2 Feb 2012 14:37:32 -0800 X-Google-Sender-Auth: H9RsU_7j_Rr8iJNtHqVLy_zRyuo Message-ID: Subject: Re: One table or multiple tables? From: Jean-Daniel Cryans To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org You're not telling us much about your read patterns and data distribution, but I would go with the former solution for the sake of simplicity. You'd want to write your row keys in the same format as OpenTSDB does: http://opentsdb.net/schema.html J-D On Wed, Feb 1, 2012 at 8:59 AM, Mark wrote: > We would like to track all of our users interactions ordered by time. > Product views, searches, logins, etc. There are (at least) two ways of > accomplishing this: > > We could use one table 'user_logs' and have keys in the format of. > USER_ID/TYPE/TIMESTAMP. Type could be (product view, search, login, etc) > > Or we could have multiple tables for each type.. UserProductLogs, > UserSearchLogs, etc. > > What are the pros/cons of each strategy and which one do you think I should > employ? > > - M