Discussion:
MongoDB integration and pagination
Ola
2018-08-06 20:47:54 UTC
Permalink
Hello

What is the best way to implement pagination for MongoEngine model
(http://mongoengine.org/) and DRF framework?

Any suggestions would be much appreciated

Ola
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ola
2018-08-06 20:50:17 UTC
Permalink
Using rest_framework_mongoengine I ended up with loading all results into
memory, not possible to sort :(

Executor error during find command: OperationFailed: Sort operation used
more than the maximum 33554432 bytes of RAM. Add an index, or specify a
smaller limit.
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...