My scenario is as following:
I have a large collections of documents ~100K in size and I need to use small chunks of this data to create a new document, say 1K chunks, this mean that one run of my algorithm is translated to around 100 calls to the database.
I feel like there maybe a better way performance wise.
Is loading the whole collection upfront once, better then doing 100 calls?
Any advice?