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

Optimise messybrainz database lookups

XMLWordPrintable

      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

            kartik1712 amCap1712
            alastairp Alastair Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package