Re: Basic Architecture Question
Roger, if you include the last read key as the start key for the next API call, will that retrieve the same key/row twice? The documentation says that both keys (start, finish) are included. Thanks On Thu, Apr 29, 2010 at 1:31 PM, Brandon Williams dri...@gmail.com wrote: On Thu, Apr 29, 2010 at 10:19 AM, David Boxenhorn da...@lookin2.comwrote: So now we can do any kind of range queries, not just for getting all keys as Jesse said? With RP, the key ranges are based on the MD5 sum of the key, so it's really only useful for getting all keys, or obtaining a semi-random row. -Brandon -- Patricio.-
Re: Basic Architecture Question
It will. 2010/5/1 Patricio Echagüe patric...@gmail.com: Roger, if you include the last read key as the start key for the next API call, will that retrieve the same key/row twice? The documentation says that both keys (start, finish) are included. Thanks On Thu, Apr 29, 2010 at 1:31 PM, Brandon Williams dri...@gmail.com wrote: On Thu, Apr 29, 2010 at 10:19 AM, David Boxenhorn da...@lookin2.com wrote: So now we can do any kind of range queries, not just for getting all keys as Jesse said? With RP, the key ranges are based on the MD5 sum of the key, so it's really only useful for getting all keys, or obtaining a semi-random row. -Brandon -- Patricio.- -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com
Re: Basic Architecture Question
apparently there is now range query support for getting all keys using the RP... cheers, jesse -- jesse mcconnell jesse.mcconn...@gmail.com On Thu, Apr 29, 2010 at 08:16, David Boxenhorn da...@lookin2.com wrote: We want to store objects in Cassandra. In general, the mapping is quite easy. But for some kinds of objects, we want to be able to read all of them into memory. We want to use random partitioning, which means that we can't do a range query over keys (is this right?). Is there any way to get ALL the keys directly (order is not important)? Or do I need to define a separate column family, and save all the keys in a single column of that family? Or... something else?
Re: Basic Architecture Question
How do I do that??? On Thu, Apr 29, 2010 at 4:31 PM, Jesse McConnell jesse.mcconn...@gmail.comwrote: apparently there is now range query support for getting all keys using the RP... cheers, jesse -- jesse mcconnell jesse.mcconn...@gmail.com On Thu, Apr 29, 2010 at 08:16, David Boxenhorn da...@lookin2.com wrote: We want to store objects in Cassandra. In general, the mapping is quite easy. But for some kinds of objects, we want to be able to read all of them into memory. We want to use random partitioning, which means that we can't do a range query over keys (is this right?). Is there any way to get ALL the keys directly (order is not important)? Or do I need to define a separate column family, and save all the keys in a single column of that family? Or... something else?
Re: Basic Architecture Question
take a look at get_range_slices and start with . then invoke get_range_slices again, but this time use the last key as the start key // Roger Schildmeijer On 29 apr 2010, at 16.28em, David Boxenhorn wrote: How do I do that??? On Thu, Apr 29, 2010 at 4:31 PM, Jesse McConnell jesse.mcconn...@gmail.com wrote: apparently there is now range query support for getting all keys using the RP... cheers, jesse -- jesse mcconnell jesse.mcconn...@gmail.com On Thu, Apr 29, 2010 at 08:16, David Boxenhorn da...@lookin2.com wrote: We want to store objects in Cassandra. In general, the mapping is quite easy. But for some kinds of objects, we want to be able to read all of them into memory. We want to use random partitioning, which means that we can't do a range query over keys (is this right?). Is there any way to get ALL the keys directly (order is not important)? Or do I need to define a separate column family, and save all the keys in a single column of that family? Or... something else?
Re: Basic Architecture Question
On Thu, Apr 29, 2010 at 10:19 AM, David Boxenhorn da...@lookin2.com wrote: So now we can do any kind of range queries, not just for getting all keys as Jesse said? With RP, the key ranges are based on the MD5 sum of the key, so it's really only useful for getting all keys, or obtaining a semi-random row. -Brandon