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

Statistics pages are unnecessarily slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Statistics
    • None

      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.)

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

              Created:
              Updated:

                Version Package