Re: New thrift api question.

2009-08-12 Thread Jonathan Ellis
It's impossible to implement offset either performantly or safely in a distributed log-structured merge system that supports deletes. The original API punted on all three of those. 0.4 doesn't. See https://issues.apache.org/jira/browse/CASSANDRA-261 for a discussion of performance (we decided

Re: New thrift api question.

2009-08-12 Thread Michael Koziarski
Pagination is an extremely common use case scenario in web app programming. almost every web app need “one to many” data model. when the “many” part is too many to fit in one page, paginate is the best way to resolve it. in most case, we don't need query or sort the result in a complicated

New thrift api question.

2009-08-11 Thread Tangram Liu
Hi, there! I'm new to cassandra. and I think it fascinating. I got a question here: image a simple blog host app base on cassandra with the following data model: **http://www.google.cn/dictionary?q=fascinatinglangpair=en%7Czhhl=zh-CNei=CSOCSqinNYOQkQXS3ujiCgsa=Xoi=translationct=resultKeyspaces

new thrift API

2009-08-08 Thread Jonas Bonér
Hey guys. Is the new API stabilizing? How is the new range functions suppose to work? public ListColumn get_slice_by_names(String keyspace, String key, ColumnParent column_parent, Listbyte[] column_names, int consistency_level) throws InvalidRequestException, NotFoundException, TException;

Re: new thrift API

2009-08-08 Thread Jonathan Ellis
Stabilizing but not quite finished (329 and 311 are still waiting for review). But the fundamentals are the same. You have start/finish because that's what defines a range. You have count because you often want the First N results. -Jonathan On Sat, Aug 8, 2009 at 8:33 AM, Jonas

Re: new thrift API

2009-08-08 Thread Jonathan Ellis
Count is always the max number of results to return. So it means, starting with `start`, or the first one if start is empty, go until you hit `finish` or `count`, whichever comes first. Empty is not a legal column name so if finish is empty it is ignored and only count is used. We don't offer a