<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Advice on handling range querying partial row keys?</title>
		<link>http://www.datastax.com/support-forums/topic/advice-on-handling-range-querying-partial-row-keys</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 18:29:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/advice-on-handling-range-querying-partial-row-keys" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "Advice on handling range querying partial row keys?"</title>
			<link>http://www.datastax.com/support-forums/topic/advice-on-handling-range-querying-partial-row-keys#post-1133</link>
			<pubDate>Sun, 12 Feb 2012 22:02:45 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1133@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Since RandomPartitioner distributes your row keys randomly throughout the cluster there is no way to do what you are proposing. One way to achieve what you want might be to keep a manual index that allows you to enumerate the keys you want to retrieve.&#60;/p&#62;
&#60;p&#62;So for example In one column family have rows where the row keys are dates and the column values are app names for that given date. Then another column family where row keys are app names and the column values are client_uuids for that app_name. This would allow you to construct the row keys to retrieve all the rows for a given date or a given date and app name.&#60;/p&#62;
&#60;p&#62;My specific example might not apply directly to your use case but the basic concept is probably what you need. There is no way to do range queries on keys so you will need to keep an index for finding all the keys you want to retrieve.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Advice on handling range querying partial row keys?"</title>
			<link>http://www.datastax.com/support-forums/topic/advice-on-handling-range-querying-partial-row-keys#post-1132</link>
			<pubDate>Sat, 11 Feb 2012 02:08:44 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1132@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am designing a data model and am using a concatenation of three attributes as the row key, ordered respectively: date (hour grain) &#38;amp; app_name &#38;amp; client_uuid.&#60;/p&#62;
&#60;p&#62;When doing queries or grabbing data for MapReduce jobs, I would like query by date, or possibly by date &#38;amp; app_name. client_uuid is there more for uniqueness and distribution of the hashing. Is there a way to handle this situation? Say, search by 'date &#38;amp; *' or search by 'date &#38;amp; app_name &#38;amp; *'.&#60;/p&#62;
&#60;p&#62;Thanks in advance for the help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
