Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-8680

Statistics pages are unnecessarily slow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Statistics
    • Labels:
      None

      Description

      Loading the data for the statistics pages involves the subquery SELECT MAX(date_collected) FROM statistics.statistic) to find out the latest day for which statistics are available, requiring a full scan of the rather large table for each page access. The day should instead be cached somewhere, or an index on date_collected be added. (The latter option seems like overkill unless the new index could be used by other queries, too.)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chirlu Ulrich Klauer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package