On Thu, Mar 13, 2014 at 4:14 PM, Nate McCall <n...@thelastpickle.com> wrote:
> Sure: > https://speakerdeck.com/sungjuly/apache-usergrid-internal > > Slide #21 and on goes over the entity model in detail. Particularly > interesting: > #36 > #40 > #55-#61 > > Essentially, Usergrid supports *all* of the basic mongo CRUD operations on > top of Cassandra, passing all of their test cases that don't use any > out-of-the-way functions. Would it be possible to build something similar > *solely* with CQL? > If it's doable on top of thrift, it's doable on top of CQL, yes. Note that there is use cases (and usegrid might well be one) for which the CQL version will not look much better than the thrift one would (typically, if you want to use DynamicCompositeType, you will be back to manipulating your "cell" names and values as blob client side, the very same way you'd do with thrift). Still, it's possible, and even when it's not prettier with CQL than it is with thrift (and there is a very large amount of use cases where it is prettier with CQL), it's not worth either. > I'm fine with Thrift going away - I get the reasoning there. I just want to > be able to hack against ("against", not "on") internals more easily. > Let's first maybe agree that this relatively separated from the "let's freeze the thrift API" proposal of Jonathan? If we do agree on that, maybe this should be discussed separately (at least some other thread), so it doesn't make it sound like this is some disagreement over Jonathan's proposal? -- Sylvain > > > > On Thu, Mar 13, 2014 at 9:30 AM, Jonathan Ellis <jbel...@gmail.com> wrote: > > > You should probably give more details of those two data models for > > those of us who have contributed neither to usergrid nor the mongodb > > emulator. :) > > > > On Thu, Mar 13, 2014 at 9:10 AM, Nate McCall <n...@thelastpickle.com> > > wrote: > > > After discussing this the past few days with a couple of folks, yes, I > > > don't think maintaining the currently incubating Usergrid ( > > > https://usergrid.incubator.apache.org/) will be possible. > > > > > > Basically, how would you do what are essentially container collections > of > > > arbitrary runtime-definable UDTs? With everything in a virtual > keyspace? > > > Think about how we got the mongodb emulator working. Can you really do > > this > > > with CQL? > > > > > > Apigee is currently running several instances of this system at scale > > for a > > > number of very large clients. The main public cluster behind the > > > AppServices product has "many tens of thousands" of tenants. > > > > > > Again, in all seriousness, is this dynamic a model possible via CQL? > > > > > > Granted, we may be an edge case at this point and maintaing a large > chunk > > > of code solely for that type of function is just bad software. Hence my > > > desire to assist with > > https://issues.apache.org/jira/browse/CASSANDRA-6846. > > > > > > > > -- > > Jonathan Ellis > > Project Chair, Apache Cassandra > > co-founder, http://www.datastax.com > > @spyced > > > > > > -- > ----------------- > Nate McCall > Austin, TX > @zznate > > Co-Founder & Sr. Technical Consultant > Apache Cassandra Consulting > http://www.thelastpickle.com >