<?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: Database Shards and CakePHP</title>
	<atom:link href="http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
	<description>Facebook should&#039;ve be written in unicornSchemaLang, because everyone *knows* that PHP is no good for anything, right?</description>
	<lastBuildDate>Fri, 30 Jul 2010 05:30:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/comment-page-1/#comment-6928</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Tue, 07 Aug 2007 17:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/#comment-6928</guid>
		<description>@wluigi: some of it could be there, but tell me how you would handle this situation:  4 different servers that you can read or write to depending on what server a particular record is located on?</description>
		<content:encoded><![CDATA[<p>@wluigi: some of it could be there, but tell me how you would handle this situation:  4 different servers that you can read or write to depending on what server a particular record is located on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wluigi</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/comment-page-1/#comment-6926</link>
		<dc:creator>wluigi</dc:creator>
		<pubDate>Tue, 07 Aug 2007 14:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/#comment-6926</guid>
		<description>shouldn&#039;t it be stored in the model, like useTable, useDBConfig ?</description>
		<content:encoded><![CDATA[<p>shouldn&#8217;t it be stored in the model, like useTable, useDBConfig ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hartjes</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/comment-page-1/#comment-6916</link>
		<dc:creator>Chris Hartjes</dc:creator>
		<pubDate>Sun, 05 Aug 2007 17:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/#comment-6916</guid>
		<description>@tarique: Unfortunately, to make shards work properly you have to denormalize your data, which means doing stuff with associations is very difficult.

@pcdinh: There is no trick to implementing shards in PHP:  I can think of a few ways to do it right off the top of my head, but I was trying to think of where to put the code in the context of CakePHP and it looks like a behavior for reads and in beforeSave() for a model is the  way I would go (without having done further research myself)</description>
		<content:encoded><![CDATA[<p>@tarique: Unfortunately, to make shards work properly you have to denormalize your data, which means doing stuff with associations is very difficult.</p>
<p>@pcdinh: There is no trick to implementing shards in PHP:  I can think of a few ways to do it right off the top of my head, but I was trying to think of where to put the code in the context of CakePHP and it looks like a behavior for reads and in beforeSave() for a model is the  way I would go (without having done further research myself)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pcdinh</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/comment-page-1/#comment-6915</link>
		<dc:creator>pcdinh</dc:creator>
		<pubDate>Sun, 05 Aug 2007 17:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/#comment-6915</guid>
		<description>Just be curious on how to implementing sharding in PHP. A Java-based one has come up here: http://www.hivedb.org/</description>
		<content:encoded><![CDATA[<p>Just be curious on how to implementing sharding in PHP. A Java-based one has come up here: <a href="http://www.hivedb.org/" rel="nofollow">http://www.hivedb.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarique Sani</title>
		<link>http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/comment-page-1/#comment-6912</link>
		<dc:creator>Tarique Sani</dc:creator>
		<pubDate>Sat, 04 Aug 2007 04:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.littlehart.net/atthekeyboard/2007/08/03/database-shards-and-cakephp/#comment-6912</guid>
		<description>The problem which has me stumped in sharding with cakePHP is how and where to store the associated data of a shraded table. Most often an application has a main model eg: Hotels (or in your case the users) and we can shard  that. 

I was considering storing the associated on the same shard server.... hasOne, hasMany and to an extent belongsTo can work fine but how does one handle hasAndBelongsToMany?</description>
		<content:encoded><![CDATA[<p>The problem which has me stumped in sharding with cakePHP is how and where to store the associated data of a shraded table. Most often an application has a main model eg: Hotels (or in your case the users) and we can shard  that. </p>
<p>I was considering storing the associated on the same shard server&#8230;. hasOne, hasMany and to an extent belongsTo can work fine but how does one handle hasAndBelongsToMany?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
