django
Django: Complex query sets take longer to execute
If I do an OR search filter on the fields of the model and the m2m model associated with it, the annotate, the query will take a long time to execute.(1500-2000ms) If I remove Q(tags__name__icontains=value) from the filter in the following queryset It works in about 30-50ms, so I think the cause is a problem with m2m. […]
5 mins read
