s9tpepper/MongoAS3 — Issue #9: can use mongodb method?
Author: bat007
Created: 2012-02-08 09:13:33+00:00
State: open

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