<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cleaning up with JSON and SQL in Django</title>
	<atom:link href="http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html</link>
	<description>A blog about Django, JavaScript, CSS, and general web development.</description>
	<lastBuildDate>Tue, 09 Mar 2010 21:59:12 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20781</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 22 Apr 2009 19:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20781</guid>
		<description>@ashwoods The only downside to things like couchdb is (last I looked) they haven&#039;t been proven. I&#039;d love to use a non-relational database but there&#039;s really no great solution out there yet.</description>
		<content:encoded><![CDATA[<p>@ashwoods The only downside to things like couchdb is (last I looked) they haven&#8217;t been proven. I&#8217;d love to use a non-relational database but there&#8217;s really no great solution out there yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwoods</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20780</link>
		<dc:creator>ashwoods</dc:creator>
		<pubDate>Wed, 22 Apr 2009 13:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20780</guid>
		<description>Wouldn&#039;t a document-based database make more sense?
I am currently working on a custom django field that doesnt store the data in the database, &quot;redirects&quot; to a couchdb entry.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t a document-based database make more sense?<br />
I am currently working on a custom django field that doesnt store the data in the database, &#8220;redirects&#8221; to a couchdb entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: igorekk</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20770</link>
		<dc:creator>igorekk</dc:creator>
		<pubDate>Thu, 16 Apr 2009 08:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20770</guid>
		<description>Peter, Yes, siteconfig app is great and very useful :)</description>
		<content:encoded><![CDATA[<p>Peter, Yes, siteconfig app is great and very useful <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20769</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 15 Apr 2009 20:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20769</guid>
		<description>The djblets projects has a similar field called JSONField. It is also used in their siteconfig app (which works great for my needs).</description>
		<content:encoded><![CDATA[<p>The djblets projects has a similar field called JSONField. It is also used in their siteconfig app (which works great for my needs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henning</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20768</link>
		<dc:creator>Henning</dc:creator>
		<pubDate>Wed, 15 Apr 2009 19:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20768</guid>
		<description>A good use case for JSON fields are user preferences in my opinion.</description>
		<content:encoded><![CDATA[<p>A good use case for JSON fields are user preferences in my opinion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20767</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 15 Apr 2009 17:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20767</guid>
		<description>Yep I can give you two great examples:

1) Lifestream

We store custom data based on each extension, in one table. The extension then decides how to handle this data. It&#039;s a smart denormalization.

2) iBegin

We have way too many rows and an alter requires downtime. This metadata doesn&#039;t change often, but it&#039;s just that, metadata. If we need to build indexes on it we can do that in another fashion.

It&#039;s much more efficient using it out of a JSONField rather than doing more SQL queries for a set of key/value pairs.</description>
		<content:encoded><![CDATA[<p>Yep I can give you two great examples:</p>
<p>1) Lifestream</p>
<p>We store custom data based on each extension, in one table. The extension then decides how to handle this data. It&#8217;s a smart denormalization.</p>
<p>2) iBegin</p>
<p>We have way too many rows and an alter requires downtime. This metadata doesn&#8217;t change often, but it&#8217;s just that, metadata. If we need to build indexes on it we can do that in another fashion.</p>
<p>It&#8217;s much more efficient using it out of a JSONField rather than doing more SQL queries for a set of key/value pairs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharms</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20766</link>
		<dc:creator>sharms</dc:creator>
		<pubDate>Wed, 15 Apr 2009 17:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20766</guid>
		<description>I can attest that in the real world frequently there are requests for &#039;1 more field&#039; or frequently unused data types that may only exist on a few objects.

Traditional database design doesn&#039;t fit well in many scenarios.</description>
		<content:encoded><![CDATA[<p>I can attest that in the real world frequently there are requests for &#8216;1 more field&#8217; or frequently unused data types that may only exist on a few objects.</p>
<p>Traditional database design doesn&#8217;t fit well in many scenarios.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amccloud</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20764</link>
		<dc:creator>amccloud</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20764</guid>
		<description>@Andy Baker

Because it is a ridiculously large dataset. The schema doesn&#039;t keep changing, just different records store a little bit of extra custom data.</description>
		<content:encoded><![CDATA[<p>@Andy Baker</p>
<p>Because it is a ridiculously large dataset. The schema doesn&#8217;t keep changing, just different records store a little bit of extra custom data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Baker</title>
		<link>http://www.davidcramer.net/code/448/cleaning-up-with-json-and-sql.html/comment-page-1#comment-20763</link>
		<dc:creator>Andy Baker</dc:creator>
		<pubDate>Wed, 15 Apr 2009 11:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=448#comment-20763</guid>
		<description>I&#039;m having a trouble imagining a use-case here.

If your schema does change that often how about a table for key/value pairs or something like that?

Why does your schema keep changing? Is there a better way to model the data that might avoid the problem?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a trouble imagining a use-case here.</p>
<p>If your schema does change that often how about a table for key/value pairs or something like that?</p>
<p>Why does your schema keep changing? Is there a better way to model the data that might avoid the problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
