Re: simple erlang example

2011-02-19 Thread J T
Hi Sasha, Below is some code from an old module I was working with a while back. It should give you an idea of the direction to go but really if you look at the files generated by thrift for cassandra it should help as well: * cassandra_thrift.erl * cassandra_thrift.hrl * cassandra_types.erl

Re: simple erlang example

2011-02-19 Thread J T
Well I can't go in to too much detail I'm afraid but yes, in some cases there is duplication of data across the different database engines but then thats 'ok' in this new NOSQL world. On Sat, Feb 19, 2011 at 2:01 PM, Joshua Partogi wrote: > Hi, > > Would you like to share you use both database?

Re: simple erlang example

2011-02-19 Thread Joshua Partogi
Hi, Would you like to share you use both database? Does this mean you have the same data in both database? Thanks for sharing. Kind regards, Joshua. On Sun, Feb 20, 2011 at 12:41 AM, J T wrote: > Hi Joshua, > I can't speak for Sasha, but in my case I use both Riak and Cassandra since > cassand

Re: simple erlang example

2011-02-19 Thread J T
Hi Joshua, I can't speak for Sasha, but in my case I use both Riak and Cassandra since cassandra has ranges and build in secondary indexes whereas Riak does not. Actually I use others too as the different ones bring different qualities to the table. JT> On Sat, Feb 19, 2011 at 7:18 AM, Joshua P

Re: simple erlang example

2011-02-19 Thread J T
HI Sasha, That was me that was going to try and put something on the wiki and I completely forgot about it. I'm tied up this weekend but I will endeavor to ping you an example asap. Jason On Fri, Feb 18, 2011 at 10:39 PM, Sasha Dolgy wrote: > hi, > > does anyone have an erlang example for conn

Re: simple erlang example

2011-02-18 Thread Sasha Dolgy
there is a current stratregy to use cassandra for data storage and it makes sense to have user management and roster management exist in the same place for all the different services that we provide. specific to user interaction, i started looking at ejabberd because Apache Vysper is not as featur

Re: simple erlang example

2011-02-18 Thread Joshua Partogi
Is there any reason why you would be interested to use erlang with cassandra instead of other erlang based database [i.e Couchbase, Riak] ? I am interested to know the reason. Kind regards, Joshua On Sat, Feb 19, 2011 at 9:39 AM, Sasha Dolgy wrote: > hi, > does anyone have an erlang example for

simple erlang example

2011-02-18 Thread Sasha Dolgy
hi, does anyone have an erlang example for connecting to cassandra and performing an operation like a get? I'm not having much luck with: \thrift-0.5.0\test\erl\src\* as a reference point. I generated all of the erlang files using thrift and have successfully compiled them but am having a pretty