cursor.itcount()

在本页面

Definition

itcount()cursor.count()类似,但实际上是在现有迭代器上执行查询,从而耗尽了进程中的内容。

itcount()方法具有以下原型形式:

db.collection.find(<query>).itcount()

See also

cursor.count()

首页