When using RMongo and R to retrieve documents this line is used in R:
RMongo - x <- dbGetQuery(mongo, "ECodes", "{}", skip = 0, limit =
100000)
RMongoDB - cursor <- mongo.find(mongo,
ns="CHARS.ECodes",
fields=list(RecordKey=1L, ECodeNumber=1L, ECode=1L,
DischargeYear=1L, DischargeMonth=1L, TotalCharges=1L),
limit = 0,
skip = 100000)
Return 67,157 documents.
RMongo - x <- dbGetQuery(mongo, "ECodes", "{}", skip = 100000, limit =
100000)
RMongoDB - cursor <- mongo.find(mongo,
ns="CHARS.ECodes",
fields=list(RecordKey=1L, ECodeNumber=1L, ECode=1L,
DischargeYear=1L, DischargeMonth=1L, TotalCharges=1L),
limit = 100000,
skip = 100000)
Returns 61,166
I have chatted with a developer from RMongoDB and he doesn't think its
on his side.
Do you know of any way of verifying this in the MongoDB Shell?
Rick
On Jan 27, 9:37 am, Sam Millman <
sam.mill...@gmail.com> wrote:
> count() will return the total doc count before skip and limit.
>
> What I am, unsure about is the first part of your problem: " It returns
> around 67,000 and the numbers are
> repeatable."
>
> What do you mean, "the numbers are repeatable"? Does that you can just
> repeat the problem? If so cna you give us a scenario query or is the query
> you gave the scenario one?
>