unsubscribe

2012-07-30 Thread Alvin UW
thx

Re: Customized Secondary Index Schema

2011-08-25 Thread Alvin UW
se with most things regarding Cassandra, the off-the-cuff assumptions > only get you so far before you have to do some math and do some tests. > > As I mentioned in my talk, for simple uses cases like this, you probably > should just start with the built in secondary indexes, but I assume

Re: Customized Secondary Index Schema

2011-08-25 Thread Alvin UW
Yes, this is what I am worrying about. 2011/8/24 Ryan King > On Tue, Aug 23, 2011 at 10:03 AM, Alvin UW wrote: > > Hello, > > > > As mentioned by Ed Anuff in his blog and slides, one way to build > customized > > secondary index is: > > We use one CF, eac

Re: Customized Secondary Index Schema

2011-08-24 Thread Alvin UW
into > multiple rows, bit of a pain thought. I'd wait and see, or crunch some > numbers before hand. > > Cheers > > - > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 24/08/2011, at 5:03 AM, Alv

Customized Secondary Index Schema

2011-08-23 Thread Alvin UW
Hello, As mentioned by Ed Anuff in his blog and slides, one way to build customized secondary index is: We use one CF, each row to represent a secondary index, with the secondary index name as row key. For example, Indexes = { "User_Keys_By_Last_Name" : { "adams" : "e5d61f2b-…", "alden" : "e80a17

Re: run Cassandra tutorial example

2011-08-23 Thread Alvin UW
localhost < > ~/code/github/datastax/cassandra-tutorial/npanxx_script.txt > > And ran > mvn -e exec:java -Dexec.args="get" > -Dexec.mainClass="com.datastax.tutorial.TutorialRunner" > > Which outputted > HColumn(city=Austin) > > Hope that helps. >

run Cassandra tutorial example

2011-08-22 Thread Alvin UW
Hello, I'd like to try the cassandra tutorial example: https://github.com/zznate/cassandra-tutorial by following the readme. After typing mvn -e exec:java -Dexec.args="get" -Dexec.mainClass="com.datastax.tutorial.TutorialRunner" I got the following errors. Should I do something before the above

Re: HOW TO select a column or all columns that start with X

2011-08-17 Thread Alvin UW
mponents to them. That is what start.addCompo and end.addCompo... > means. For more information please refer to > https://issues.apache.org/jira/browse/CASSANDRA-2231 > > For you question, I think replace "abc" with "bob" should do the trick. > > On Wed, Aug

Re: HOW TO select a column or all columns that start with X

2011-08-16 Thread Alvin UW
Hello, can anyone give an explanation of start.addComponent("abc", StringSerializer.get()) ; end.addComponent("abc", StringSerializer.get(), "UTF8Type", AbstractComposite.ComponentEquality.GREATER_THAN_EQUAL) ; Suppose my composite column names are like ("bob", 1982), ("bob", 1976). There are m

Re: How to release a customised Cassandra from Eclipse?

2011-08-10 Thread Alvin UW
ge - > From: "Norman Maurer" > To: user@cassandra.apache.org > Sent: Monday, August 8, 2011 6:30:59 AM > Subject: Re: How to release a customised Cassandra from Eclipse? > > Its > > ant artifacts > > > Bye > Norman > > 2011/8/7, Alvin

Re: Setup Cassandra0.8 in Eclipse

2011-08-08 Thread Alvin UW
cassandra.utils.obs The common error info is "The declared package "org.apache.cassandra.xxx" does not match the expected package "java.org.apache.cassandra.xxx" Alvin 2011/8/8 Jake Luciani > you can simply run: > > ant generate-eclipse-files > > then import

Setup Cassandra0.8 in Eclipse

2011-08-07 Thread Alvin UW
Hello, I am trying to Setup Cassandra0.8 in Eclipse following http://wiki.apache.org/cassandra/RunningCassandraInEclipse After right clicking on the build.xml -> "Run As" -> "Ant Build". Error appeared as follows: Buildfile: /workspace/Cassandra0.8/build.xml maven-ant-tasks-localrepo: maven-ant-t

Re: How to release a customised Cassandra from Eclipse?

2011-08-07 Thread Alvin UW
st dir. > > cheers > > - > Aaron Morton > Freelance Cassandra Developer > @aaronmorton > http://www.thelastpickle.com > > On 7 Aug 2011, at 03:58, Alvin UW wrote: > > > Thanks. > > I am a beginner. > I checked bin folder under myCassandra.

Re: How to release a customised Cassandra from Eclipse?

2011-08-06 Thread Alvin UW
; > > On Sat, Aug 6, 2011 at 10:43 AM, Alvin UW wrote: > > Hello, > > > > I set up a Cassandra project in Eclipse following > > http://wiki.apache.org/cassandra/RunningCassandraInEclipse > > Then, I made a few modifications on it to form a customised Cassandra

How to release a customised Cassandra from Eclipse?

2011-08-06 Thread Alvin UW
Hello, I set up a Cassandra project in Eclipse following http://wiki.apache.org/cassandra/RunningCassandraInEclipse Then, I made a few modifications on it to form a customised Cassandra. But I don't know how can I release this new Cassandra from Eclipse as a jar file to use in EC2. I tried "ant r

Re: Is secondary index consistent with its base table?

2011-03-10 Thread Alvin UW
> On Mon, Mar 7, 2011 at 10:55 AM, Alvin UW wrote: > > Thanks. > > > > Does Cassandra store secondary index with an extra CF? > > > > 2011/3/7 Jonathan Ellis > >> > >> Yes, this is guaranteed the same way single-row updates are guaranteed > &g

Is secondary index consistent with its base table?

2011-03-07 Thread Alvin UW
Hello, I was wondering whether Secondary Index is consistent with its base table? How did you guarantee the consistency? Thanks Alvin

Re: Consistency question caused by Read_all and Write_one

2010-12-14 Thread Alvin UW
same time stamp the greater value when compared by > bytes will be used. Ken in this case. > > If you app has sections that are highly concurrent try to design them away, > or use a locking mechanism outside of casandra, or use another DB. > > Hope that helps. > Aaron > &g

Re: Consistency question caused by Read_all and Write_one

2010-12-13 Thread Alvin UW
Yes, the same timestamp 2010/12/10 Ryan King > On Fri, Dec 10, 2010 at 12:49 PM, Alvin UW wrote: > > Hello, > > > > > > I got a consistency problem in Cassandra. > > > > Given a column family with a record:Id Name > >

Consistency question caused by Read_all and Write_one

2010-12-10 Thread Alvin UW
Hello, I got a consistency problem in Cassandra. Given a column family with a record:Id Name 1David There are three backups for this column family. Assume there are two write operation happens issued by the same application by t

Does the secondary index in 0.7 cost extra space like an extra ColumnFamily?

2010-10-06 Thread Alvin UW
Hello, Before 0.7, actually we can create an extra ColumnFamily as an secondary index, if we need. I was wondering whether the secondary index mechanism in 0.7 just likes creating an extra ColumnFamily as an index. The difference is only that users don't take care of the maintainence of the secon

Re: Is the secondary index maintained synchronously in 0.7

2010-09-28 Thread Alvin UW
Why the secondary index is not updated absolutely atomically? 2010/9/2 Jonathan Ellis > yes, it is updated atomically (but not in isolation, it's possible for > a client to see changes to one but not the other temporarily) > > On Thu, Sep 2, 2010 at 1:47 PM, Alvin Jin wrote: > > > > Hello, > >

Questions about secondary Indexes

2010-09-25 Thread Alvin UW
Hello, 1.Does the current index support Super CF? 2. Does the system treat the index as the same as a common CF? If not, what's the main difference between index and common CF? Thanks Alvin

Re: Build an index to for join query

2010-09-17 Thread Alvin UW
s to do the > "join" you describe seems like overkill to me... > > -Paul > > On Sep 15, 2010, at 7:34 PM, Alvin UW wrote: > > Hello, > > I am going to build an index to join two CFs. > First, we see this index as a CF/SCF. The difference is I don't materia

Build an index to for join query

2010-09-15 Thread Alvin UW
Hello, I am going to build an index to join two CFs. First, we see this index as a CF/SCF. The difference is I don't materialise it. Assume we have two tables: ID_Address(*Id*, address) , Name_ID(*name*, id) Then,the index is: Name_Address(*name*, address) When the application tries to query on

Build an index to join two CFs

2010-09-10 Thread Alvin UW
Hello, I am going to build an index to join two CFs. First, we see this index as a CF/SCF. The difference is I don't materialise it. Assume we have two tables: ID_Address(*Id*, address) , Name_ID(*name*, id) Then,the index is: Name_Address(*name*, address) When the application tries to query on

Re: Is the secondary index maintained synchronously in 0.7

2010-09-02 Thread Alvin UW
Thanks. But why does this situation happen? I mean "but not in isolation". Can we avoid it? 2010/9/2 Jonathan Ellis > yes, it is updated atomically (but not in isolation, it's possible for > a client to see changes to one but not the other temporarily) > > On Thu, Sep 2, 2010 at 1:47 PM, Alvin J