LimitOffsetPagination count behavior
Closed this issue · 2 comments
boolangery commented
Hello,
If you look a the snippet bellow from LimitOffsetPagination:
django-elasticsearch-dsl-drf/src/django_elasticsearch_dsl_drf/pagination.py
Lines 376 to 382 in a5d195f
We can see that the count id done after slicing the query set. So its not a total document count. Is this the intended behavior. (Note in Drf LimitOffsetPagination the count is done before)
Thanks
barseghyanartur commented
Did you actually test it? :) Please, try. If there are issues with the count, I'd love to fix them (but you won't find any). :)
boolangery commented
Yes I tested it but it was the max_result_window :x