So I got a friend to modify it but its not ideal. I mounted to DBrepair in another folder in Appdata, and then added it to the docker. That part probably isnt needed but the rest should be good.
So this is how he killed the service on Unraid, maybe add that to the Github? As that was a big issue.
Im going to share your whole script because he needed to adjust a couple things to get it to recognize the Hotio Image. DBRepairHOTIO.zip (8.7 KB)
The guy who helped me is going to comment this too to make sure you get the details straight from the intelligent source and not the newby
So I ran the other Hotio DB repair script that I shared a few comments up yesterday, it sped up Plex a lot and reduced the DB size a lot. BUT after running this script, OH MY GOD did it speed up Plex!! Everything is instant now. I have a fairly large library, about 16000 movies and a lot of tv shows, my DB was about 950MB. Im sure even larger libraries will benefit even more.
I don’t think I could be more happy lol I am curious if I still get the slowsql sleep 200ms error though or the same amount of crashing. Ill find that over the next few days.
Now if you can write a script that tells plex to scan every file and analyze for intros, generate preview thumbnails and chapter thumbnails, that would be god like!! I have such a big library that I often need to kill plex for something and when I bring it back all those jobs get dropped. Analyze the library only seems to work on preview thumbnails and not the other 2 things.
Let me know when/if you update the script to support Hotio. I am going to do a big write up on the Unraid and Plex subreddits about improving Plex performance and this will be one of the tools I will talk about. I want to wait until you update it though.