We are storing JSON Document that is greater than 16MB and we storing it using GridFS into collections(fs.chunks, fs.files).Below is my sample json.I want filter,sort and limit based on the fields in address array.Can you please point me to an example .Thank you in advance.
Thank you very much,This is just example JSON document,my JSON document is >16MB and mongodb throws error as ‘It exceeded the size of 16MB’.But unfortunately we have mix of documents for the same collection that are mostly less than 16MB and very few greater than 16MB and structure has embedded documents with arrays.We have to use aggregation queries for unwind,filter,sort and limit etc. And now the problem in question is that if >16MB documents stored using GridFS is there a way that can queried using Aggregation,as we do for normal collections or any other better solution could help.
Thank you in advance.