Yes I did.
A query command is run, and the response back includes a fixed binary
portion and then a list of bson objects found.
The fixed binary portion is fairly static and all fields are used
already.
There is no bson object if none was found - there can be 1 bson object
representing an error if one occurred.
But the error object would not be a valid place to convey the skipped
number.
Actually there is a bug in driver there - in case server returns an
error that is not a "not master error" the driver returns the error
object as actual result.
opening ticket..
On May 2, 6:07 am, axlfu <
freesearc...@gmail.com> wrote:
> have you ever read the source code?
> actually cursor will run command when you call cur.hasNext() or
> cur.next(),try debug
>
> On May 2, 3:22 am, Antoine Girbal <
anto...@10gen.com> wrote:
>
> > this feature is not available, since mongod does not return any data in
> > the case that all docs areskipped.
> > So at this point there would be no place to add this information.
> > Your best bet is to do a count() in case no document was returned, if
> > you want to double check.
>
> > On Sun, 2011-05-01 at 01:18 -0500, Tal Liron wrote:
> > > If I call Cursor.skip(100), but there are only 84 documents in the
> > > cursor, I would want to be sure that indeed only 84 wereskipped. Does
> > > anyone know if it's possible to find this out?
>
> > > The Cursor.skip API simply returns the Cursor. Are the number of
> > >skippeddocuments counted somewhere else?