<?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: use YML for storing data in  db</title>
	<atom:link href="http://www.symfonylab.com/use-yml-for-storing-data-in-db/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.symfonylab.com/use-yml-for-storing-data-in-db/</link>
	<description>Everything you wanted to know about Symfony framework but did not know who to ask!</description>
	<lastBuildDate>Fri, 27 Aug 2010 17:19:40 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rpsblog.com &#187; A week of symfony #82 (21-&#38;gt;27 july 2008)</title>
		<link>http://www.symfonylab.com/use-yml-for-storing-data-in-db/comment-page-1/#comment-417</link>
		<dc:creator>rpsblog.com &#187; A week of symfony #82 (21-&#38;gt;27 july 2008)</dc:creator>
		<pubDate>Thu, 31 Jul 2008 23:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.symfonylab.com/use-yml-for-storing-data-in-db/#comment-417</guid>
		<description>[...] use YML for storing data in db [...]</description>
		<content:encoded><![CDATA[<p>[...] use YML for storing data in db [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul A Houle</title>
		<link>http://www.symfonylab.com/use-yml-for-storing-data-in-db/comment-page-1/#comment-408</link>
		<dc:creator>Paul A Houle</dc:creator>
		<pubDate>Tue, 22 Jul 2008 15:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.symfonylab.com/use-yml-for-storing-data-in-db/#comment-408</guid>
		<description>I sometimes put a blob in a table.  This can be a quick way to store hierarchical data,  or other things that don&#039;t fit into the SQL model.

I&#039;ve often used PHP serialization or JSON for this purpose.

A big problem with using blobs like this is that you lose the intelligence of the database. At some point you might need to do a query on one of the fields hidden in the blob.  You could do this in one line of SQL if this was in it&#039;s own column,  but instead you have to write a program and do a full table scan.

Another problem with blobs is evolvability.  It&#039;s a pain to evolve your schemas in SQL,  but SQL provides you the tools to do it. You may be able to cope if your data structures are loosely coupled,  but the evolvability problem for OO databases is tough and unsolved.

A less drastic model is to create a table that lets you attach key/value pairs to rows in a table.  You can still do ad-hoc SQL queries.  This doesn&#039;t work well for complex structured data,  but is a good compromise in many cases.</description>
		<content:encoded><![CDATA[<p>I sometimes put a blob in a table.  This can be a quick way to store hierarchical data,  or other things that don&#8217;t fit into the SQL model.</p>
<p>I&#8217;ve often used PHP serialization or JSON for this purpose.</p>
<p>A big problem with using blobs like this is that you lose the intelligence of the database. At some point you might need to do a query on one of the fields hidden in the blob.  You could do this in one line of SQL if this was in it&#8217;s own column,  but instead you have to write a program and do a full table scan.</p>
<p>Another problem with blobs is evolvability.  It&#8217;s a pain to evolve your schemas in SQL,  but SQL provides you the tools to do it. You may be able to cope if your data structures are loosely coupled,  but the evolvability problem for OO databases is tough and unsolved.</p>
<p>A less drastic model is to create a table that lets you attach key/value pairs to rows in a table.  You can still do ad-hoc SQL queries.  This doesn&#8217;t work well for complex structured data,  but is a good compromise in many cases.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
