<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: DB puzzle&#8230; care to take a crack?</title>
	<atom:link href="http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/feed/" rel="self" type="application/rss+xml" />
	<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/</link>
	<description>Since the rest of my life involves pictures...</description>
	<lastBuildDate>Sat, 24 Oct 2009 02:52:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joseph</title>
		<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/#comment-852</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Tue, 15 Jul 2008 09:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://scottjarvie.wordpress.com/?p=278#comment-852</guid>
		<description>please excuse my missing closing tag on that last link.</description>
		<content:encoded><![CDATA[<p>please excuse my missing closing tag on that last link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/#comment-851</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Tue, 15 Jul 2008 09:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottjarvie.wordpress.com/?p=278#comment-851</guid>
		<description>Hey, you know who I am.  Anyway, just thought I&#039;d drop you a line and see if you&#039;re still in need of my help.  A good way to set up a database for this sort of thing might be to take a look at &lt;a href=&quot;http://www.mediawiki.org/&quot; title=&quot;mediawiki.org&quot; rel=&quot;nofollow&quot;&gt; to see how they set up their database.

Another thing to take a look at is image repository sites like &lt;a href=&quot;http://www.meme-archive.org/post/list&quot; title=&quot;motivational images (NSFW?)&quot; rel=&quot;nofollow&quot;&gt; which has images, and images have tags, you can search on these meta tags, etc.  People can edit tags create new tags, add, remove, etc etc.  A more professional webpage that is not interactive is &lt;a href=&quot;http://www.jupiterimages.com/&quot; title=&quot;jupiterimages.org&quot; rel=&quot;nofollow&quot;&gt;.  Similar concept except they beg for money.

As for the database, I would suggest something like this
table images
 int `index` auto_increment primary key &#039;&#039;gives you ~4billion indexs
 text `path` &#039;&#039;path to file
 varchar(40) `hash` &#039;&#039;md5 has of file for unicity (thus you dont get double uploads)
 text `tags` &#039;&#039;holds the tags
 int `poster` &#039;&#039;holds user id of poster
 int `date` &#039;&#039;date image is submitted
 int `status` &#039;&#039;a status variable? flagged? approved? deleted? archived? etc.
 &#039;&#039;add what ever you want.. etc.

table tags
 int `index` auto_increment primary key
 varchar(120) `tag`
 int `count` &#039;&#039;counts instances of tags, (this table is for quick access of amounts w/o massive searching

table comments
 int `index` auto_increment primary key
 int `image` &#039;&#039;images index that the comment belongs to
 text `comment`

table logs, query_cache, preview_images, etc  (lots can be done to speed up the queries at the expense of memory and harddrive space)


For those of you who are quite versed in sql, please feel free to correct me.  I&#039;m sure there is something I could be doing better (like using blobs instead of text fields)!

Hope this helps
Joseph</description>
		<content:encoded><![CDATA[<p>Hey, you know who I am.  Anyway, just thought I&#8217;d drop you a line and see if you&#8217;re still in need of my help.  A good way to set up a database for this sort of thing might be to take a look at <a href="http://www.mediawiki.org/" title="mediawiki.org" rel="nofollow"> to see how they set up their database.</p>
<p>Another thing to take a look at is image repository sites like </a><a href="http://www.meme-archive.org/post/list" title="motivational images (NSFW?)" rel="nofollow"> which has images, and images have tags, you can search on these meta tags, etc.  People can edit tags create new tags, add, remove, etc etc.  A more professional webpage that is not interactive is </a><a href="http://www.jupiterimages.com/" title="jupiterimages.org" rel="nofollow">.  Similar concept except they beg for money.</p>
<p>As for the database, I would suggest something like this<br />
table images<br />
 int `index` auto_increment primary key &#8221;gives you ~4billion indexs<br />
 text `path` &#8221;path to file<br />
 varchar(40) `hash` &#8221;md5 has of file for unicity (thus you dont get double uploads)<br />
 text `tags` &#8221;holds the tags<br />
 int `poster` &#8221;holds user id of poster<br />
 int `date` &#8221;date image is submitted<br />
 int `status` &#8221;a status variable? flagged? approved? deleted? archived? etc.<br />
 &#8221;add what ever you want.. etc.</p>
<p>table tags<br />
 int `index` auto_increment primary key<br />
 varchar(120) `tag`<br />
 int `count` &#8221;counts instances of tags, (this table is for quick access of amounts w/o massive searching</p>
<p>table comments<br />
 int `index` auto_increment primary key<br />
 int `image` &#8221;images index that the comment belongs to<br />
 text `comment`</p>
<p>table logs, query_cache, preview_images, etc  (lots can be done to speed up the queries at the expense of memory and harddrive space)</p>
<p>For those of you who are quite versed in sql, please feel free to correct me.  I&#8217;m sure there is something I could be doing better (like using blobs instead of text fields)!</p>
<p>Hope this helps<br />
Joseph</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Val</title>
		<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/#comment-840</link>
		<dc:creator>Val</dc:creator>
		<pubDate>Wed, 09 Jul 2008 03:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://scottjarvie.wordpress.com/?p=278#comment-840</guid>
		<description>Hi, my name&#039;s Val. I&#039;m a rising sophomore at Princeton University, you can find my 6 months out of date resume at http://www.princeton.edu/~vkarpov/resume.pdf . Currently I&#039;m working as lead developer for a startup in Philadelphia, but the development is slowly winding down so I&#039;m starting to get more free time. But basically, I have a ton of experience with SQL, the startup I&#039;m working with involves me designing and managing a 30+ table MySQL database and interacting with it through PHP and Python with Javascript on the front end. I&#039;ve also done a few side projects with MySQL, such as a plugin for NASA&#039;s WorldWind software for plotting the location of visitors to your website on a 3D model of the Earth based on their IP addresses and a course selection web tool for Princeton University. I&#039;m interested to discuss what you&#039;re considering, shoot me an email at vkarpov (at) princeton.edu.</description>
		<content:encoded><![CDATA[<p>Hi, my name&#8217;s Val. I&#8217;m a rising sophomore at Princeton University, you can find my 6 months out of date resume at <a href="http://www.princeton.edu/~vkarpov/resume.pdf" rel="nofollow">http://www.princeton.edu/~vkarpov/resume.pdf</a> . Currently I&#8217;m working as lead developer for a startup in Philadelphia, but the development is slowly winding down so I&#8217;m starting to get more free time. But basically, I have a ton of experience with SQL, the startup I&#8217;m working with involves me designing and managing a 30+ table MySQL database and interacting with it through PHP and Python with Javascript on the front end. I&#8217;ve also done a few side projects with MySQL, such as a plugin for NASA&#8217;s WorldWind software for plotting the location of visitors to your website on a 3D model of the Earth based on their IP addresses and a course selection web tool for Princeton University. I&#8217;m interested to discuss what you&#8217;re considering, shoot me an email at vkarpov (at) princeton.edu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scottjarvie</title>
		<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/#comment-839</link>
		<dc:creator>scottjarvie</dc:creator>
		<pubDate>Tue, 08 Jul 2008 05:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://scottjarvie.wordpress.com/?p=278#comment-839</guid>
		<description>Mitch: I don&#039;t use AIM but you can contact me through my email jarvie (at) jarviedigital.com</description>
		<content:encoded><![CDATA[<p>Mitch: I don&#8217;t use AIM but you can contact me through my email jarvie (at) jarviedigital.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch</title>
		<link>http://scottjarvie.wordpress.com/2008/07/06/db-puzzle-care-to-take-a-crack/#comment-838</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Tue, 08 Jul 2008 03:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottjarvie.wordpress.com/?p=278#comment-838</guid>
		<description>I&#039;m the webmaster of my college radio station...I used it as an excuse to learn php and mysql. I also manage all of the sql databases and did my senior design project using mysql databases and network anomaly detection. I&#039;m interested in whatever you got going, let me know.

AIM: eadaionx</description>
		<content:encoded><![CDATA[<p>I&#8217;m the webmaster of my college radio station&#8230;I used it as an excuse to learn php and mysql. I also manage all of the sql databases and did my senior design project using mysql databases and network anomaly detection. I&#8217;m interested in whatever you got going, let me know.</p>
<p>AIM: eadaionx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
