So I'm using flask-mongoengine as my ORM in many projects.
The pagination comes with it is very useful and easy to use, especially the
However, there's a problem with flask-mongoengine's pagination that can cause a huge performance lag. The
count() function used to calcula...