<?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: Does Cassandra support index into a subcolumn in a composite column? If so, how?</title>
		<link>http://www.datastax.com/support-forums/topic/does-cassandra-support-index-into-a-subcolumn-in-a-composite-column-if-so-how</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 09:51:58 +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/does-cassandra-support-index-into-a-subcolumn-in-a-composite-column-if-so-how" rel="self" type="application/rss+xml" />

		<item>
			<title>stanley@marketo.com on "Does Cassandra support index into a subcolumn in a composite column? If so, how?"</title>
			<link>http://www.datastax.com/support-forums/topic/does-cassandra-support-index-into-a-subcolumn-in-a-composite-column-if-so-how#post-8929</link>
			<pubDate>Tue, 05 Feb 2013 23:54:31 +0000</pubDate>
			<dc:creator>stanley@marketo.com</dc:creator>
			<guid isPermaLink="false">8929@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I have the following use case: assume there is a theater chain with thousands of theaters. Each day there are multiple movies playing in each theater. People go into the theater to see movies. Each viewer has 5 demographic attributes, such as age, income range, etc. &#60;/p&#62;
&#60;p&#62;I want to find out on each day for each theater, how many viewers are there for each movie, further broken down by one or several of the 5 demographic attributes. &#60;/p&#62;
&#60;p&#62;I have chosen to store the data as a CF, keyed by theaterId:date:movieId. Each column in the row is a composite column whose key are like attrib1:attrib2:attrib3:attrib4:attrib5:Viewer_i. I used valueless column. Does this design look right?&#60;/p&#62;
&#60;p&#62;My question is, does Cassandra support secondary index into each of the 5 demographic attributes appearing in the same composite column? That is, if my question is, given a theater, find all viewers whose value for attrib2 matches given value, does Cassandra support indexing on attrib2? If so, what is the syntax (through API or CQL3)?&#60;/p&#62;
&#60;p&#62;Also, is this Jira &#60;a href=&#34;https://issues.apache.org/jira/browse/CASSANDRA-3680&#34; rel=&#34;nofollow&#34;&#62;https://issues.apache.org/jira/browse/CASSANDRA-3680&#60;/a&#62; about the same question I asked here?&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
