<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 15, 2022 at 12:01 PM Gary Buhrmaster <<a href="mailto:gary.buhrmaster@gmail.com">gary.buhrmaster@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jun 14, 2022 at 8:44 PM Larry Kennedy <<a href="mailto:lunchtimelarry@gmail.com" target="_blank">lunchtimelarry@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, Jun 13, 2022 at 10:35 PM Gary Buhrmaster <<a href="mailto:gary.buhrmaster@gmail.com" target="_blank">gary.buhrmaster@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Jun 14, 2022 at 1:52 AM Larry Kennedy <<a href="mailto:lunchtimelarry@gmail.com" target="_blank">lunchtimelarry@gmail.com</a>> wrote:<br>
>><br>
>> > On second look, queries are slow too. Select from Person can take upwards of 400ms:<br>
>><br>
>> When was the last time you performed a key distribution<br>
>> analysis and stored the statistics for use by the query<br>
>> optimizer?<br>
><br>
><br>
> Gary, I've got the optimize_mythdb script set up to run periodically. So, it ran very recently.<br>
><br>
<br>
Then something else very basic is wrong with your<br>
database setup, as a select from people using a<br>
where person should be (essentially) instantaneous.<br>
After performing the recommendations that the<br>
mysqltuner script suggests, and if a select from<br>
people is still slow, run an explain on that select<br>
to see what the query plan is (and, perhaps, turn<br>
on slow query logging for your db server).<br></blockquote><div><br></div><div>It was becoming apparent that nothing I tweaked was changing the result, so I decided to stand up a new database to see. Since I have a docker platform at hand, I installed a mariadb container and loaded the mythconverg database dump into that new database. Now, MFDB runs quickly! It took 30 minutes the first time since it was behind a couple of days (I assume that's why), and subsequent runs are just a few minutes. Woo Hoo!</div><div><br></div><div>While I decide whether to leave the database on this new remote (container) host, or delete/reinstall mariadb and move it back to the same host as the backend, I changed the config.xml to reference the new database host. Mythtv itself is able to find the database, but mythweb cannot. I've looked all around and I can't find the setting that tells mythweb to look for the database on the new host. I checked the /etc/apache2 settings, as well as /var/www/html/mythweb, found what looks like the right settings, but nothing is working. <br></div><div><br></div><div>Where is the mythweb database config located?<br></div><div><br></div><div> <br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div></div>