<?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: CQL and the ability to implement &#34;tagging&#34;</title>
		<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Mon, 20 May 2013 03:14:54 +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/cql-and-the-ability-to-implement-tagging" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1461</link>
			<pubDate>Thu, 29 Mar 2012 18:03:33 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1461@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for the heads up!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thepaul on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1450</link>
			<pubDate>Wed, 28 Mar 2012 22:28:36 +0000</pubDate>
			<dc:creator>thepaul</dc:creator>
			<guid isPermaLink="false">1450@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;The Python driver does support cql3, for what it's worth.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbellis on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1417</link>
			<pubDate>Thu, 22 Mar 2012 04:31:08 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1417@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I don't think the JDBC driver supports CQL3 yet either.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1400</link>
			<pubDate>Tue, 20 Mar 2012 13:01:22 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1400@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Thanks for the help, I compile from source so I'm using 1.1.0-beta and the latest JDBC.&#60;/p&#62;
&#60;p&#62;I'm assuming the composite primary key will have to be created via JDBC rather than ./cqlsh as it doesn't yet support CQL 2+?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbellis on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1397</link>
			<pubDate>Tue, 20 Mar 2012 02:28:45 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1397@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Better would be to denormalize just one level:&#60;/p&#62;
&#60;p&#62;CREATE TABLE post_tags (&#60;br /&#62;
    post_id uuid,&#60;br /&#62;
    tag string,&#60;br /&#62;
    PRIMARY KEY (post_id, tag)&#60;br /&#62;
);&#60;/p&#62;
&#60;p&#62;(See &#60;a href=&#34;http://www.datastax.com/dev/blog/schema-in-cassandra-1-1&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/schema-in-cassandra-1-1&#60;/a&#62; for discussion on composite PKs.)&#60;/p&#62;
&#60;p&#62;For Cassandra 1.0 you'd need to manually spell out the wide row nature by specifying the comparator and validator instead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1390</link>
			<pubDate>Mon, 19 Mar 2012 10:20:28 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1390@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;So essentially I would be normalising the data as follows:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;posts {
     id uuid
     ...
}

postTags {
     id binary, // hash / checksum
     tag string
}

postTagsMap {
     postID uuid,
     tagID binary
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Makes sense really as it allows indexing on tags and tag/post ID maps, although it feels very RDBMS (I don't mind).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbellis on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1386</link>
			<pubDate>Sun, 18 Mar 2012 20:18:26 +0000</pubDate>
			<dc:creator>jbellis</dc:creator>
			<guid isPermaLink="false">1386@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;You'd have to split the tags out into a separate columnfamily.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://issues.apache.org/jira/browse/CASSANDRA-3647&#34; rel=&#34;nofollow&#34;&#62;https://issues.apache.org/jira/browse/CASSANDRA-3647&#60;/a&#62; is open to support lists, maps, and sets directly as column values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "CQL and the ability to implement &#34;tagging&#34;"</title>
			<link>http://www.datastax.com/support-forums/topic/cql-and-the-ability-to-implement-tagging#post-1384</link>
			<pubDate>Sun, 18 Mar 2012 17:44:33 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1384@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Would it be possible to implement this column family and query/insert such via CQL?&#60;/p&#62;
&#60;p&#62;post {&#60;br /&#62;
     id: 1&#60;br /&#62;
     title: &#34;Hello Dennis&#34;&#60;br /&#62;
     body: &#34;Post body...&#34;&#60;br /&#62;
     timestamp '2012-03-18 17:41:55'&#60;br /&#62;
     tags: [&#34;hello&#34;, &#34;world&#34;, &#34;testing&#34;]&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;&#34;tags&#34; would also need to be indexable - to the best of my knowledge the above isn't possible when interfacing via CQL, I've read up on composite columns but information is disturbing thin. If anyone could help direct me it'd be much appreciated.&#60;/p&#62;
&#60;p&#62;Cheers!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
