mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01:00
Handcrafts SQL queries a little more to reduce the query count and/or the amount of returned data (#6489)
This commit is contained in:
parent
63e1f9f5d3
commit
7be7185418
10 changed files with 188 additions and 135 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue