<?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; Database</title>
	<atom:link href="http://www.chrispramblings.com/category/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chrispramblings.com</link>
	<description>Ramblings from Chrispcritters</description>
	<lastBuildDate>Thu, 15 Dec 2011 19:21:32 +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>Continued DB Issues</title>
		<link>http://www.chrispramblings.com/continued-db-issues</link>
		<comments>http://www.chrispramblings.com/continued-db-issues#comments</comments>
		<pubDate>Mon, 27 Apr 2009 18:24:36 +0000</pubDate>
		<dc:creator>Chrispcritters</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.chrispramblings.com/continued-db-issues</guid>
		<description><![CDATA[Still having sporadic DB issues.  For some reason mysql connections are hanging while &#8220;sending data&#8221;.  Seems to happen for about 2-3 minutes before the connections reset and everything is fine.  Need to spend some time trying to diagnose the issue.  I think for the time being I&#8217;ll do everything possible to [...]]]></description>
			<content:encoded><![CDATA[<p>Still having sporadic DB issues.  For some reason mysql connections are hanging while &#8220;sending data&#8221;.  Seems to happen for about 2-3 minutes before the connections reset and everything is fine.  Need to spend some time trying to diagnose the issue.  I think for the time being I&#8217;ll do everything possible to limit the number of db connections being generated by the most trafficked pages on the site and see if that help mitigate the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrispramblings.com/continued-db-issues/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

