home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Building dynamic lists when entering them directly rather than on plugin start?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 973497" data-attributes="member: 18896"><p>I've seen slow-queries go from almost an hour to a few milliseconds after creating indexes. I'm sure the query in this case is a lot of table joins and other aspects. Adding indexes manually doesn't always work then to increase performance.</p><p> </p><p>Last I looked into this myself, before aborting dynamic ones and going with a bunch of static ones instead; I had a few tables that contained a bunch of rows relating to the dynamic categogies added. The column names you mention do not sound right for those tables.</p><p> </p><p>Easy to run a test on this box, and it gives me the following:</p><p> </p><p>[node] table gets an entry added for "Actors" which is the dynamic filter entry added. Below that on this test box I get 32 actor node entries from the small selection of movies this test setup holds (15 movies if memory serves me, which would lead to 75 actors, but I'm testing a lot of movie series for IMDb+ which obviously results in a lot of reduced entries then).</p><p> </p><p>The [parent] column of each added actor refers back to the ID that belongs to the "Actors" node entry, but they all get a unique [filter] ID.</p><p>The [filter] ID from that table gets linked to the [filter] ID used for dynamic actors inside the [node__node] table.</p><p> </p><p>Just speculating now, but the delay is either from verifying that all those static entries added to the [node] table and their reference in [node__node] are still valid each time, or causes a giant delay in some crazy query that lacks the indexes to do it fast. Guess you can try to add indexex on the respective columns in those tables, but would help to find out first what query is actually used that causes the delay (easier to spot best place to add indexes then).</p><p> </p><p>I can do some trial & error later this week on a large scale test database copy, by enabling dynamic actors on it and see what indexes are needed. But you will probably beat me to it.</p></blockquote><p></p>
[QUOTE="RoChess, post: 973497, member: 18896"] I've seen slow-queries go from almost an hour to a few milliseconds after creating indexes. I'm sure the query in this case is a lot of table joins and other aspects. Adding indexes manually doesn't always work then to increase performance. Last I looked into this myself, before aborting dynamic ones and going with a bunch of static ones instead; I had a few tables that contained a bunch of rows relating to the dynamic categogies added. The column names you mention do not sound right for those tables. Easy to run a test on this box, and it gives me the following: [node] table gets an entry added for "Actors" which is the dynamic filter entry added. Below that on this test box I get 32 actor node entries from the small selection of movies this test setup holds (15 movies if memory serves me, which would lead to 75 actors, but I'm testing a lot of movie series for IMDb+ which obviously results in a lot of reduced entries then). The [parent] column of each added actor refers back to the ID that belongs to the "Actors" node entry, but they all get a unique [filter] ID. The [filter] ID from that table gets linked to the [filter] ID used for dynamic actors inside the [node__node] table. Just speculating now, but the delay is either from verifying that all those static entries added to the [node] table and their reference in [node__node] are still valid each time, or causes a giant delay in some crazy query that lacks the indexes to do it fast. Guess you can try to add indexex on the respective columns in those tables, but would help to find out first what query is actually used that causes the delay (easier to spot best place to add indexes then). I can do some trial & error later this week on a large scale test database copy, by enabling dynamic actors on it and see what indexes are needed. But you will probably beat me to it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Building dynamic lists when entering them directly rather than on plugin start?
Contact us
RSS
Top
Bottom