Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bat007 opened this issue Feb 8, 2012 · 2 comments
Open

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

bat007 opened this issue Feb 8, 2012 · 2 comments
Assignees

Comments

@bat007
Copy link

bat007 commented Feb 8, 2012

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

@s9tpepper
Copy link
Owner

No not yet sorry, I'll take a peek at the Java driver and see how they implemented that. I was using the C# driver when I needed to look at a reference, maybe I didn't notice that method.

@ghost ghost assigned s9tpepper Mar 29, 2012
@bat007
Copy link
Author

bat007 commented May 14, 2012

omar,u did a great work :)
looking forward the mutiple qeury feature
if can sovle the mongodb method ,that is fine.
you can find it on http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-CursorMethods
and is it possible to operate gridfs by as3 in the further?
Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants