Optimizing DRF LimitOffsetPagination performance to avoid slow count queries.
TLDR
LimitOffsetPagination in Django can cause performance issues due to the expensive count query, especially with large datasets or search_fields. To improve performance, you can override the default pagination to skip the count query.
The issue
Li...
backendops.hashnode.dev3 min read