Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-58

Optimise messybrainz database lookups

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: MessyBrainz
    • Labels:

      Description

      There's some pretty stupid database queries in messybrainz, like https://github.com/metabrainz/messybrainz-server/blob/master/messybrainz/__init__.py#L37-L40 where we perform two queries if the item exists in the database, instead of just 1 query to get the data.

      We may be able to reduce the number of queries by doing these checks/inserts for all 10 items passed to us, instead of one at a time

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package