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

Make edit search faster

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-10-13
    • Component/s: Edit search
    • Labels:
      None

      Description

      Edit search generates (for "newest first") the ordering clause ORDER BY edit.open_time desc, edit.id desc. This means that the database, which does not know that open_time and edit ID are strongly correlated, has to retrieve all results before ordering them by open_time and choosing the first 25 - for all it knows, edit #123 might be more recent than edit #12345678 or edit #23456789.

      If the results were ordered by ID alone, the output order would be almost the same, but the query would be processed much faster.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2014-10-13