hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: One table or multiple tables?
Date Thu, 02 Feb 2012 22:37:32 GMT
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 <static.void.dev@gmail.com> 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

Mime
View raw message