Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 58DF79831 for ; Tue, 28 Feb 2012 08:24:18 +0000 (UTC) Received: (qmail 77204 invoked by uid 500); 28 Feb 2012 08:24:16 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 77177 invoked by uid 500); 28 Feb 2012 08:24:16 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 77169 invoked by uid 99); 28 Feb 2012 08:24:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 08:24:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a44.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 08:24:09 +0000 Received: from homiemail-a44.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTP id CEA0E11805C for ; Tue, 28 Feb 2012 00:23:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=r1g11bGUH7 /kuKJ0G5DXemgpMPz7nvv2TM5vACoqN5Y065LdjkdR/fDhwrrm0tRNW4U11d8M6u zblqUrwwbMmUtTRMlfmAgtHz40wPTuBucfWYvJjoKhmiBZBBwflHs0HxjxdzqJcU iiVsGSbjQcn9td5DCgVgpaHHbWkgzc+Ow= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=p9xThiqAMDO4AaO2 7E7e9iSXKLQ=; b=gjeN/G01bX9O++tuadqaAhUhdPYVguO8QowwocySjI2r1hve 57tt41j4gm2/wY9LqkuCHqFS9baJeWe8Y/8QudelBzp0NY4s0R6dKKdF95hZXq6v zHS1E9G79f9sBIXDiumdhDkGGJmRwWpPX3ZuNfnGyLdIJXaBPbjuqOy/ebo= Received: from [172.16.1.3] (125-236-193-159.adsl.xtra.co.nz [125.236.193.159]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTPSA id 3538A118058 for ; Tue, 28 Feb 2012 00:23:47 -0800 (PST) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_ECD14B1A-AF25-468E-954A-8979DE1DE521" Subject: Re: TimeUUID Date: Tue, 28 Feb 2012 21:23:49 +1300 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_ECD14B1A-AF25-468E-954A-8979DE1DE521 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii not a great deal of difference, personally I would stick with seconds = since epoch (it is probably slightly faster). Cheers =20 ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 28/02/2012, at 7:24 PM, Tamar Fraenkel wrote: > Hi! > I have a column family where I use rows as "time buckets".=20 > What I do is take epoc time in seconds, and round it to 1 hour (taking = the result of time_since_epoc_second divided by 3600). > My key validation type is LongType. > I wonder whether it is better to use TimeUUID or even readable string = representation for time? > Thanks, >=20 > --=20 > Tamar Fraenkel=20 > Senior Software Engineer, TOK Media=20 >=20 > >=20 > tamar@tok-media.com > Tel: +972 2 6409736=20 > Mob: +972 54 8356490=20 > Fax: +972 2 5612956=20 >=20 >=20 >=20 --Apple-Mail=_ECD14B1A-AF25-468E-954A-8979DE1DE521 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii not a = great deal of difference, personally I would stick with seconds since = epoch (it is probably slightly = faster).

Cheers
 
http://www.thelastpickle.com

On 28/02/2012, at 7:24 PM, Tamar Fraenkel wrote:

Hi!
I have a column family where I use rows as "time = buckets". 
What I do is take epoc time in seconds, and = round it to 1 hour (taking the result of time_since_epoc_second divided = by 3600).
My key validation type is LongType.
I wonder whether it = is better to use TimeUUID or even readable string representation for = time?
Thanks,

--
Tamar Fraenkel 
Senior Software Engineer, TOK = Media 

<tokLogo.png>




= --Apple-Mail=_ECD14B1A-AF25-468E-954A-8979DE1DE521--