Handcrafts SQL queries a little more to reduce the query count and/or the amount of returned data (#6489)

This commit is contained in:
Trenton H
2024-04-30 07:37:09 -07:00
committed by GitHub
parent 63e1f9f5d3
commit 7be7185418
10 changed files with 188 additions and 135 deletions

View File

@@ -330,10 +330,10 @@ class BarcodePlugin(ConsumeTaskPlugin):
break
if tag:
tag = Tag.objects.get_or_create(
tag, _ = Tag.objects.get_or_create(
name__iexact=tag,
defaults={"name": tag},
)[0]
)
logger.debug(
f"Found Tag Barcode '{raw}', substituted "