<?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>Armswiper.co.uk &#187; &#8220;Cain&#8221;</title>
	<atom:link href="http://www.armswiper.co.uk/blog/view/tag/cain/feed" rel="self" type="application/rss+xml" />
	<link>http://www.armswiper.co.uk</link>
	<description>Developer, Rower, Funny Man</description>
	<lastBuildDate>Thu, 07 Apr 2011 19:18:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Slow MythTV Deletes (Solved!)</title>
		<link>http://www.armswiper.co.uk/blog/view/436</link>
		<comments>http://www.armswiper.co.uk/blog/view/436#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:37:06 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[MythTV]]></category>
		<category><![CDATA["Cain"]]></category>

		<guid isPermaLink="false">http://www.armswiper.co.uk/?p=436</guid>
		<description><![CDATA[Less than an hour after I post my latest progress as &#8220;Doesn&#8217;t make much difference&#8221;, I&#8217;ve managed to fix the problem (Well, it works for me at least). The secret was written in a post that I linked to in my very first post about this problem. I can&#8217;t believe that I didn&#8217;t pay it [...]]]></description>
			<content:encoded><![CDATA[<p>Less than an hour after I post my latest progress as &#8220;Doesn&#8217;t make much difference&#8221;, I&#8217;ve managed to fix the problem (Well, it works for me at least).</p>
<p>The secret was written <a href="http://www.nabble.com/Re:-Slow-MySQL-query-after-delete-p12447485s15552.html">in a post</a> that I linked to in my very first post about this problem. I can&#8217;t believe that I didn&#8217;t pay it any attention before.</p>
<p>Basically, all you need to do is to run &#8220;mythfilldatabase&#8221; without any parameters. As well as retrieving new data, it resets the database.</p>
<p>Now this, actually, makes sense to me. I guess the reason that I never encountered this before is that I always used to use the Radio Times grabber for downloading my programme listings, however the other year I switched to EPG (electronic programme guide). That means that I don&#8217;t run mythfilldatabase on a regular schedule.</p>
<p>And therefore, that means that I&#8217;m not downloading data, and <strong>cleansing the database</strong>, as much as I should be! I seem to remember something about a few thousand items being marked for something, as it scrolled up the screen. I subsequently ran it again just to check, and this time it showed zero for all items.</p>
<p>I since tested it, and I was able to delete around 10 different programmes, and still didn&#8217;t receive any lag in deletions. That&#8217;s going to way in around the 15 to 20GB range. That&#8217;s pretty damn good, if you ask me.</p>
<p>All I need to make sure is that mythfilldatabase didn&#8217;t cock anything up, and then somehow schedule it to run frequently. More than once a year I guess would be a bonus&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.armswiper.co.uk/blog/view/436/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MythTV Slow Deletes (Still)</title>
		<link>http://www.armswiper.co.uk/blog/view/434</link>
		<comments>http://www.armswiper.co.uk/blog/view/434#comments</comments>
		<pubDate>Mon, 10 Nov 2008 17:58:02 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[MythTV]]></category>
		<category><![CDATA["Cain"]]></category>

		<guid isPermaLink="false">http://www.armswiper.co.uk/blog/view/434</guid>
		<description><![CDATA[Having spent bloody ages explaining, and then doing, the defragmentation of a Linux hard drive partition, I&#8217;m still experiencing very slow delete times from my MythTV media centre. To make matters worse, I now get a time out on a lot of different interactions with the box, for example when I escape out of watching [...]]]></description>
			<content:encoded><![CDATA[<p>Having spent bloody ages explaining, and then doing, the defragmentation of a Linux hard drive partition, I&#8217;m still experiencing very slow delete times from my MythTV media centre.</p>
<p>To make matters worse, I now get a time out on a lot of different interactions with the box, for example when I escape out of watching a tv programme. The screen will go black and the two minutes later I see a popup telling me the connection to the master backend has &#8216;gone away&#8217;.</p>
<p>I have now done an optimzation on the database through several methods and it does not appear to make life any better. It does appear to make a difference for a while but it soon returns to normal behaviour. Admittedly though I was planning on doing an &#8216;OPTIMIZE TABLE&#8217; for every table in the database and so far I have only done it on the &#8216;program&#8217; table.</p>
<p>One tool I did use was &#8216;myisamcheck &#8211;analyze &#8211;check-only-changed &#8211;quick &#8211;sort-index *.MYI&#8217; in /var/lib/mysql/mythconverg</p>
<p>That seemed to spend sometime checking several tables, including &#8216;program&#8217;.</p>
<p>M planning on running a full optimize when I get the chance, but I&#8217;m also wondering what else could be going on which would cause this problem. Might need to consult &#8216;top&#8217;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.armswiper.co.uk/blog/view/434/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
