jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
286 stars 65 forks source link

Problem with very large collections #121

Closed sergiocalde94 closed 6 years ago

sergiocalde94 commented 6 years ago

Hi!

I am doing a simple find in a collection contains 3 fields, one of then is an array of objects. When I limit the query only to a few of registers all is good, but when I try to query all collections mongolite gives me an error:

mongo_conn$find(query = '{}', field = '{}') Error: Unimplemented BSON type 6

I think that the error really is 'no memory' or something like that, isn´t it?

jeroen commented 6 years ago

Hmm I doubt it. Sure there is no strange binary data in your dB?

jeroen commented 6 years ago

Did you perhaps upgrade mongodb after inserting data with an old version of mongodb?

sergiocalde94 commented 6 years ago

Wow, you got it!

There were some corrupt data in the database, I close the issue!

ramkumar-equinix commented 2 years ago

@sergiocalde94 can you please provide more info, what type of of corrupted data, and how you found it

sergiocalde94 commented 2 years ago

This is from 4 years ago! I don't remember but I think that was something related to mongo version.