Time complexity of cassandra operations

2013-02-11 Thread Tim Wintle
Hi, I've tried searching for this all over the place, but I can't find an answer anywhere... What is the (theoretical) time complexity of basic C* operations? I assume that single lookups are O(log(R/N)) for R rows across N nodes (as SST lookups should be O(log(n)) and there are R/

Re: complexity

2010-12-27 Thread Brandon Williams
On Fri, Dec 24, 2010 at 10:35 PM, Kevin Irwig wrote: > thanks all - and just to clarify the cost of getting a column (and a column > given a SuperColumn) is also O(log N) ? > Since subcolumns are not indexed ( https://issues.apache.org/jira/browse/CASSANDRA-598) retrieving them from a SuperColu

Re: complexity

2010-12-24 Thread Kevin Irwig
thanks all - and just to clarify the cost of getting a column (and a column given a SuperColumn) is also O(log N) ? From: Zhu Han To: user@cassandra.apache.org Sent: Sat, 25 December, 2010 3:16:08 AM Subject: Re: complexity Yep. I forgot about the binary

Re: complexity

2010-12-24 Thread Zhu Han
Yep. I forgot about the binary search part. Thank you! regards, hanzhu On Fri, Dec 24, 2010 at 9:35 PM, Jonathan Ellis wrote: > On Fri, Dec 24, 2010 at 4:42 AM, Zhu Han wrote: > > When the row is stored on disk as SSTable, the complexity of getting a > row > > is constant,

Re: complexity

2010-12-24 Thread Jonathan Ellis
On Fri, Dec 24, 2010 at 4:42 AM, Zhu Han wrote: > When the row is stored on disk as SSTable, the complexity of getting a row > is constant, as it always know where to get the row by in-memory indices. Technically, it's O(log N) because of the binary search on the in-memory index. -

Re: complexity

2010-12-24 Thread Peter Schuller
>> When the row is stored on disk as SSTable, the complexity of getting a row >> is constant, as it always know where to get the row by in-memory indices. > > BTW: not the whole indices are kept in memory, just part of them are. This > is controlled by "IndexInterval"

Re: complexity

2010-12-24 Thread Zhu Han
On Fri, Dec 24, 2010 at 6:42 PM, Zhu Han wrote: > When the row is stored on disk as SSTable, the complexity of getting a row > is constant, as it always know where to get the row by in-memory indices. > BTW: not the whole indices are kept in memory, just part of them are. This is cont

Re: complexity

2010-12-24 Thread Zhu Han
When the row is stored on disk as SSTable, the complexity of getting a row is constant, as it always know where to get the row by in-memory indices. When the row is stored in memory as memtable, it is stored as skip list[1]. The complexity is O(logN). N is the total number of rows in the skip

complexity

2010-12-23 Thread Kevin Irwig
Hi, I've seen a similar question has been asked in this forum in Sept, but not answered. What is the complexity of get(row) and get(row, column-name) operations, and insert(row, column)? What about accessing or inserting a column within a SuperColumn by name? In Arin Sarkissian's

complexity of get(key) and get(key, column) operations #2

2010-09-19 Thread Claudio Martella
Hello list, sorry, i forgot a verb... what i meant is "the complexity of the lookup of a row or a row+columns". so: get(key) and get(key, column). Thanks -- Claudio Martella Digital Technologies Unit Research & Development - Analyst TIS innovation park Via Siemens 19 |

complexity of get(key) and get(key, column) operations

2010-09-19 Thread Claudio Martella
Hello list, what is the complexity of specific row and specific row/column with sstable files? Is it O(1)? i'm considering the idea of putting a graph in cassandra's datamodel and i'd like to follow n-length paths in n*O(1). the idea is to create a column family where i stor