Closed roccodev closed 3 years ago
count
is deprecated. I'll look into changing it to an estimate
Ah, I guess the Node.js library deprecated it in favour of the clearer estimatedDocumentCount
/ countDocuments
.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Uncached requests of the /get/list/[page] endpoint take very long (> 20 s) to load.
I suspect this is caused by the use of
countDocuments
(introduced in https://github.com/MineSkin/api.mineskin.org/commit/7c1fc1b2188ed4ba3031505581149552cc44578a).From the MongoDB docs:
On the other hand, the
count
operation returns an estimated count, but using collection metadata.Was there any reason for the change?