Skip to content

can use mongodb method? (request for Cursor.count()) #9

@bat007

Description

@bat007

Hi s9tpepper,
Could i use mongodb method like count() ,sort() etc.
For now i use find() to get a cusor but maye the result is large but i just need the count of the result set.
In java lib,we can use db.collections.find({'fidel' : 'abc'}).count(); that is quite faster than use cosor.toArray().length;
Any similar solution in mongoAS3?
Thanks
Bat

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions