How to get the length of a cursor from mongodb using python?

后端 未结 6 1460
南笙
南笙 2021-02-19 01:49

I\'m looking for a feasible way to get the length of cursor got from MongoDB.

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 02:17

    I find that using cursor.iter().count() is a feasible way to reslove this problem

提交回复
热议问题