Skip to content

Conversation

@w1nk
Copy link

@w1nk w1nk commented Sep 24, 2010

No description provided.

wink and others added 26 commits August 10, 2010 14:52
…o supports limit and skip as ->

find(query, fields, callback, limit, skip)
for authentication, just add username/password to the object passed into connect.  if username is found, authentication will be attempted.

the bug was caused when a .find (or equivalent) was issued from within a callback from another find...was leaking a cursor, should be plugged.
…s stuck...

according to the mongo docs, a limit of 0 is no limit at all...

g2g
… many small reads

the driver is now on par with the php driver as far as large datasets go, the native driver fails
due to running out of memory
…d scope i needed it...

play with some more use cases when time permits

    for(var i = 0; i < 10000; i++)
    {
        collection.insert({ count: i});
    }
    mongo.addListener("drained", function() {
        mongo.removeAllListeners("drained");
        mongo.close();
    });

ugly, but its a reasonable tell that closing the connection isnt going to result in inserts being dropped
by the socket at least.
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

Successfully merging this pull request may close these issues.

1 participant