<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 14, 2022 at 5:26 AM Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</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 14/06/2022 02:50, Larry Kennedy wrote:<br>
> <br>
> On second look, queries are slow too. Select from Person can take upwards<br>
> of 400ms:<br>
> <br>
> 2022-06-13 21:33:10.412506 I MSqlQuery::exec(DBManager1) SELECT person<br>
> FROM people WHERE name = 'Angel Parker' <<<< Took 323ms, Returned 1 row(s)<br>
> <br>
> If I run these same queries from SQL Workbench on a windows desktop, they<br>
> are immediate, perhaps from caching. But I suspect something else might be<br>
> going on..<br>
> <br>
> <br>
>> but I'm seeing inserts/replace commands that take over 800ms, so that<br>
>> doesn't bode well for potentially thousands of inserts:<br>
>><br>
>> 2022-06-13 21:33:36.706803 I MSqlQuery::exec(DBManager1) REPLACE INTO<br>
>> credits ( person, chanid, starttime, role) VALUES ('6708',<br>
>> '20892', '2022-06-30T10:00:00.000Z', 'producer') <<<< Took 866ms<br>
>><br>
>> That suggests a mysql/mariadb database issue, no?<br>
> <br>
Maybe, maybe not :)<br>
<br>
Is it at all possible that the user running the mfdb does not have permissions to create or write in <br>
the cache file? If it has to do a disk access for every single query, that might explain your delays.<br>
<br></blockquote><div><br></div><div>Interesting. How do I check this? Is this an O/S file permission? or a grant permission in the database?</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>
<br>
Mike Perkins<br>
<br>
_______________________________________________<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>