Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-684

Optimise Multiple MIA queries to avoid unnecessary JOINS

    XMLWordPrintable

Details

    • Icon: Improvement/Rework Improvement/Rework
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.2
    • 2.1.1
    • None
    • None

    Description

      <p>Currently all optional mia type tables are joined in the main&nbsp;MIA query, this is redundant for MultipleMIAs as they are explicitly selected separately after the main MIA query. </p>

      <p>Joining to multiple MIA tables cause a lot of duplication of rows which hurts performance and stops paging working as expected. Local tests showed 900 returned rows for a query to select 19 movies if all known MIAs are optionally requested&nbsp;<img alt="Tongue" height="16" src="https://issues.team-mediaportal.com/plugins/servlet/jeditor_ck_provider.jsp?file=plugins/smiley/images/jira_tongue.png" title="Tongue" width="16"></p>

      <p>Rework the query builders to only join MultipleMIA tables if they are a necessary requested MIA.</p>

      <p>&nbsp;</p>

      Attachments

        Activity

          People

            brownard Brownard
            brownard Brownard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: