0

I'm querying my MongoDB which is hosted as a trial account over at MongoHQ for a document which has a field containing over 1000 values. When I try to retrieve this document, my query simply doesn't return anything. If I try shortening the field to say, 100 values, it works fine. I have one doc in this collection with a similar field that has 586 values and it loads as well.

I'm wondering is there some kind of limit being imposed here that I'm not aware of? There's no way the doc is over 4MB.

UPDATE: Realized there were some values that were evaluating to null, this was causing the query to break. Solved.

Rohan Deshpande
  • 694
  • 8
  • 22

1 Answers1

0

MongoDB Document size limit is now 16MB. Reference

Update to new version!

Huge nested document can exceed the document size limit.

Using Db-ref instead of using huge nested document would not possibly face any size limit problem.

jwchang
  • 10,584
  • 15
  • 58
  • 89