taobojlen / django-zeal

Detect N+1s in your Django app.
MIT License
81 stars 0 forks source link

Detect N+1s on .get() #7

Open taobojlen opened 2 months ago

taobojlen commented 2 months ago

Right now, zealot will detect many forms of N+1, but it won't detect something like

for i in range(10):
  foo = MyModel.objects.get(id=i)

We should handle that case, too.