<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ChrisP Ramblings &#187; Websites</title>
	<atom:link href="http://www.chrispramblings.com/category/websites/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chrispramblings.com</link>
	<description>Ramblings from Chrispcritters</description>
	<lastBuildDate>Mon, 26 Apr 2010 04:52:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DB Issues</title>
		<link>http://www.chrispramblings.com/db-issues</link>
		<comments>http://www.chrispramblings.com/db-issues#comments</comments>
		<pubDate>Mon, 08 Dec 2008 21:36:13 +0000</pubDate>
		<dc:creator>Chrispcritters</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.chrispramblings.com/?p=33</guid>
		<description><![CDATA[On the whatismyipaddress.com website I&#8217;ve got a rolling history of IP address, user-agent, date, and a flag for each visit.  Initially user-agent was stored in the table as a fairly long string.  After several hundred thousand records I notice significant db performance delays.  Since I didn&#8217;t really need to know what the [...]]]></description>
			<content:encoded><![CDATA[<p>On the whatismyipaddress.com website I&#8217;ve got a rolling history of IP address, user-agent, date, and a flag for each visit.  Initially user-agent was stored in the table as a fairly long string.  After several hundred thousand records I notice significant db performance delays.  Since I didn&#8217;t really need to know what the user-agent was I started to store a 32-byte hash of the user-agent.  This helped till the table exceeded 1.5 million records.  Currently the IP address is stored as VARCHAR(15).  I&#8217;m thinking of switching to storing the ip2long (IP as decimal) as an unsigned INT to see if that makes things faster.  MySQL should be able to index an int better than 15 bytes of text.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrispramblings.com/db-issues/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
