<div dir="ltr">I will have a look at mysqltuner but Is it likely that something is is wrong with the database? There are a large number of errors in the log trying to delete recordings that are not there. I have had a look at the drive that the recordings are stored on and these are all  files that have been watched and then deleted. Obviously still present in the database. The thumb nails for all the video files are still present on the drive though but the recordings are long gone.<div><br></div><div>Would manually deleting all of these entries from the 'recored' table be a bad idea?<br><div> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 May 2015 at 21:01, Simon Hobson <span dir="ltr"><<a href="mailto:linux@thehobsons.co.uk" target="_blank">linux@thehobsons.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Dan Wilga <<a href="mailto:mythtv-users2@dwilga-linux1.amherst.edu">mythtv-users2@dwilga-linux1.amherst.edu</a>> wrote:<br>
<br>
> If you have not already tuned MySQL, you should look into the settings available in /etc/my.cnf. The most relevant ones in your case would probably be tmp_table_size and max_heap_table_size which, for MyISAM tables, should probably be identical. I use a value of 500M for each, which means large queries that cannot be satisfied by other caching methods can take up to 500 Mb before having to be written to disk.<br>
><br>
> If you have enough free RAM, you could set tmpdir to /dev/shm/, but this is a less efficient way of doing the same thing.<br>
<br>
</span>I would also suggest running <a href="http://mysqltuner.pl" target="_blank">mysqltuner.pl</a> - it generally gives pretty good information on how your current settings can be changes to suit your load. You'll enjoy spending a few hours going through the manual working out how the settings interact and what they do - then tweak, restart MySQL and wait to build up fresh stats.<br>
<br>
It does take some effort, but I can assure that a bit of tuning can really really improve your system. I forget the details now, but IIRC my system used to be quite sluggish (especially when rescheduling after after recording rule change), but after tuning would reschedule in a fraction of the time and normally before MythWeb redrew the upcoming recordings page.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div>