"limit" : 0 change in semantics?

  1.  
    1. It appears that setting limit to 0 now limits the number of results to 0, rather than be unlimited, as stated in the online documentation. Is this a recent change? Can you change the documentation if so?

       The tutorial says:

       Note that we use a limit of one in the above. Specifying a limit of zero means "don't limit the results: return everything you've got".  
      1. The doc is being revised right now, and that change is on the list. Thanks for asking about it.

      2. if limit:0 now means return zero returns, how do you ask to return all results?

      3. Set a large number as the limit. But if you truly want all results, you are much better off using a cursor; if you don’t know the reasonable upper bound, then you really can’t have confidence that you’ll get all the results without a timeout.

      4. The docs are still incorrectly stating zero returns all.


    Discussion is posted in:

    Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

Search Discussions

Related Discussions