only get the value needed for the comparison, re #6801
only get the value needed for the comparison, re #6801

see https://docs.djangoproject.com/en/3.1/topics/db/optimization/#use-queryset-values-and-values-list

archesproject/arches,archesproject/arches,archesproject/arches,archesproject/arches