fetch returns less incorrect number os rows when using the :limit argument

9 views
Skip to first unread message

Leandro Oliveira

unread,
Jun 5, 2013, 2:37:45 PM6/5/13
to congomo...@googlegroups.com
Could somebody explain this odd behavior?

I'm using congomongo the fetch a collection that has 177.613 rows. The problem arises when I use the :limit argument, even setting it to a high value, like 200.000, congomongo only returns 2716 rows.

Details here: https://www.refheap.com/15371

The collection has no indexes.

My drivers:
[org.mongodb/mongo-java-driver "2.11.1"]
[congomongo "0.4.1"]

Sean Corfield

unread,
Jun 24, 2013, 12:57:53 AM6/24/13
to congomongo-dev
I just noticed you never got a response to this... sorry. It turns out
it is intentional but very strange functionality. See this ticket:

https://github.com/aboekhoff/congomongo/issues/128

We're not really sure what to do about it yet.

Does _anyone_ rely on this weird batch size behavior and the 4MB limit?

Sean
> --
> You received this message because you are subscribed to the Google Groups
> "congomongo-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to congomongo-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Reply all
Reply to author
Forward
0 new messages