Re: faster ByteBuffer comparison

2011-07-01 Thread Peter Chang
unsubscribe

Re: Regarding Cassandra Scalability

2010-04-16 Thread Peter Chang
py because you will > "always" have access to the tweet as will everyone else. Also tweets > don't change AFAIK so no point in having redundant copies. > On 04/16/2010 01:42 PM, Peter Chang wrote: >> Yeah. I wasn't sure if Cassandra was optimized for bina

Re: Regarding Cassandra Scalability

2010-04-16 Thread Peter Chang
obably a handful. Also im guessing they purge data after a certain window (like 30 days for example). Sent from my iPhone On Apr 16, 2010, at 12:02 PM, gabriele renzi wrote: > On Fri, Apr 16, 2010 at 6:41 PM, Peter Chang > wrote: >> FB also does pics and movies so 1MB is way of

Re: Regarding Cassandra Scalability

2010-04-16 Thread Peter Chang
FB also does pics and movies so 1MB is way off depending on where they manage such binary data. I do agree that 1MB of text alone is a lot of text which is more relevant in the case of Twitter. The only large thing you leave out is denormalization. Every tweet you write is likely denormalized acros

Re: How to perform queries on Cassandra?

2010-04-10 Thread Peter Chang
I'm going to eventually want to do something similar so I took particular note of a thread that came up earlier in this forum. I haven't fully investigated it but I think it's a great start for what you need to do. http://www.mail-archive.com/user@cassandra.apache.org/msg00201.html

Re: Is this sentence slightly inaccurate

2010-04-08 Thread Peter Chang
I thought OPP was required for get_range_slices. Is this no longer the case for 0.6? On Thu, Apr 8, 2010 at 11:29 AM, Brandon Williams wrote: > On Thu, Apr 8, 2010 at 1:26 PM, Peter Chang wrote: > >> Sorry, I've read through the docs (although not too recently) and have

Re: Sorting and ordering in Cassandra

2010-04-08 Thread Peter Chang
Eagerly reading this post. One line here doesn't make sense to me. "Out of the box, Cassandra does not support TimeUUIDs for sorting an OrderPreservingPartitioner." Does this mean you can't use Time UUIDs when using OPP? Or that the keys will not have their order preserved? If it's the latter, pe

Re: Is this sentence slightly inaccurate

2010-04-08 Thread Peter Chang
Sorry, I've read through the docs (although not too recently) and have followed this mailing list for a bit. But I haven't seen how it's possible to iterate with RP? Could you kindly point out to me where it shows how to do this? TIA. On Wed, Apr 7, 2010 at 4:37 PM, Benjamin Black wrote: > It wa

Re: Deployment on AWS

2010-04-03 Thread Peter Chang
Woot. Ver much looking forward to this stuff Joe. On Sat, Apr 3, 2010 at 10:14 AM, Joe Stump wrote: > > On Apr 2, 2010, at 4:49 PM, Masood Mortazavi wrote: > > > Is there a ready recipe for deploying a Cassandra cluster in AWS? ... > (Seeds need some "fixed" IP addresses.) > > We have a lot of c

Re: Best PHP client

2010-04-02 Thread Peter Chang
Questions like "What is the best ___?" that have subjective answers are rarely simple. I've tried various clients and I'd just recommend trying a few out and getting involved win the projects. Some may have adavtnages of ease of use while others may be more flexible or have features such as connec

Re: Read Performance

2010-04-01 Thread Peter Chang
pwned. On Thu, Apr 1, 2010 at 2:09 PM, James Golick wrote: > Damnit! > > > On Thu, Apr 1, 2010 at 2:05 PM, Jeremy Dunck wrote: > >> Or rackspace. ;) >> >> On Thu, Apr 1, 2010 at 2:49 PM, Joseph Stump wrote: >> > Taking our flamewar offline. :-D >> > >> > On Thu, Apr 1, 2010 at 1:36 PM, Ja

Re: Model Question

2010-03-25 Thread Peter Chang
retty straightforward. That's how people sort number values (stored as strings) in Simple DB. On Thu, Mar 25, 2010 at 1:32 AM, Colin Vipurs wrote: > Peter, > > Do you think 0-padding the entries would be more efficient than just > implementing your own comparator? > > On Wed, Mar

Re: Model Question

2010-03-24 Thread Peter Chang
If there's not much overhead, I recommend client side as well. Otherwise, you can only sort on column. Therefore, you could create some sort of inverted index based on the message count. User 1 sent 50 messages. User 2 sent 10 messages. User 3 sent 25 messages. Then store a separate index that l

Re: Auto Increament

2010-03-24 Thread Peter Chang
It seems that this scheme would suffer under a race condition. On Wed, Mar 24, 2010 at 11:00 AM, Jesus Ibanez wrote: > You can generate UUIDs based on time with http://jug.safehaus.org/ if you > use Java. And its easy to use, just have to insert one line: > UUID uuid = UUIDGenerator.getInstance()

Re: Which client API to choose?

2010-03-24 Thread Peter Chang
Hector is the way to go if you're using java. I'm using it right now and it's made things worlds easier. The reason why it wasn't bundled was because it's a separate and relatively new project. I think it's under a month old and it was done by a lone developer (Ran). Also, the Cassandra project wa

Re: get ordered by value

2010-03-23 Thread Peter Chang
Perhaps an inverted index would work. supercolumn=5 subcolumn=1036 supercolumn=3 subcolumn=13838 I only used a super column family so that you could have multiple subcolumns for the same supercolumn. Peter 2010/3/22 Juan Manuel GarcĂ­a del Moral > Hello > > I have this: > > get SocialAds.Anoni

Re: Hackathon?!?

2010-03-22 Thread Peter Chang
Works for me. On Mon, Mar 22, 2010 at 2:20 PM, Chris Goffinet wrote: > Dan > > Did we all agree April 22 works for all? > > -Chris > > > On Mon, Mar 22, 2010 at 2:13 PM, Dan Di Spaltro > wrote: > >> Great - Chris, you still going to put together the invite? >> >> On Thu, Mar 11, 2010 at 5:36 AM

Re: geo coding, long/lats?

2010-03-19 Thread Peter Chang
I'd be curious too. My first instinct is to use some sort of bucketizing algorithm by location which would encapsulate entries near each other (similar coordinates). On Fri, Mar 19, 2010 at 7:06 AM, Joseph Stein wrote: > Hi All, has anyone ever done geo coding to find distance based results > fr

Re: TimeUUID

2010-03-16 Thread Peter Chang
http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java On Tue, Mar 16, 2010 at 1:09 AM, shirish wrote: > Hello, > > Could any one please point me to any resource or explain it how to use > TimeUUID > I have been trying to insert values in Keyspace1.StandardByUUID1. I get the > follow

Re: Strategies for storing lexically ordered data in supercolumns

2010-03-13 Thread Peter Chang
2010 at 5:50 PM, Brandon Williams wrote: > On Fri, Mar 12, 2010 at 7:46 PM, Peter Chang wrote: > >> Yes, I can update that one entry. But what if that subcolumn key is used >> across many different places? >> >> ['Jones-Bob']['connections']