Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Sure thing, invalidating the cache is independant of the database type being used.
As the bug report mentions it works on Android (assuming genuine kodi), maybe a LE bug?
Posts: 83
Joined: Apr 2012
Reputation:
4
2017-05-17, 08:18
(This post was last modified: 2017-05-17, 08:20 by AMoo-Miki.)
Awesome. Thanks. I would be refreshing this page every hour in the hope of hearing the good news from you.
I have a bunch of Win and Android boxes. Lemme know if I can help with any testing you might need.
Posts: 83
Joined: Apr 2012
Reputation:
4
2017-07-11, 04:25
(This post was last modified: 2017-07-11, 04:27 by AMoo-Miki.)
Another side effect of this is:
1) I refresh a movie via its info dialog
2) after a successful refresh, the info dialog updates (with the info from the new idMovie)
3) closing the dialog refreshes the movie list, which doesn't get refreshed because it loads it from cache
4) the cached list attempts to load the art for the old media_id, and because that info was removed during the refresh, it will populate the art table with a thumbnail using the old idMovie
I wish someone would end my misery by either disabling the cache or adding a switch to control it.
PS: I om 17.4 RC1 (20170707)
Posts: 56
Joined: May 2009
Reputation:
1
+1 - Having the same issue here.
Posts: 83
Joined: Apr 2012
Reputation:
4
2018-09-07, 09:48
(This post was last modified: 2018-09-07, 10:28 by AMoo-Miki.)
It has been over a year; Kodi devs seem to have no love for MySQL and shared libraries.
Over the past year, I have learned that the reason for the slowness of the queries on Movies and TV Shows is NOT always that the views are complex or that the database is slow; The problem is that Kodi pulls the entire data for a view and the sheer volume of data being transferred is gigantic. Fields that hold the list of thumbnails, fanarts, banners, and posters contain the entire URLs to all the assets that the scrappers have found and not just the ONE that you are using; these are unnecessary chunks of data that are only used when you try to change imagery, yet they are fetched upon every load of a view. Then you have the movie and show summaries which cannot be skipped really. Earlier, there was a problem with the IMDB scrapper that loaded a lot of junk in the database; the data always starts with something like "!!!FIXCHARS!!!" if I remember right. Rescanning those helped me shave 2 seconds. Manipulating the views to send back only the imagery that has been selected, helped shave another 2 seconds. Sadly, those changes were not enough and it still takes over a second to fetch the data for 2000 titles.
When you have many shows and episodes, entangled views cause the delay in data loading for episodes; the queries run slow and hence you hit the threshold of 1 second.
I have noticed changes to how Kodi fetches the data in Leia. I havn't had the chance to test it yet but I am hoping to be surprised.