Paginators always repeat the query even if the count is 0 · Issue #4201 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@gcbirzan

Description

@gcbirzan

Checklist

Steps to reproduce

Expected behavior

Actual behavior

This isn't a problem in the case I described, but in some cases the query can get quite complex and slow. Even if the view isn't wrapped in a transaction and it is possible to get rows on the second run, the results will be inconsistent, but the maybe expensive query is re-run.