I personally would NEVER recommend using .toArray()
to query an indefinite/very large no. of documents, as you're asking nodejs to fetch 3milllion documents from your db and store the whole thing in one humongosaurus array in memory. Hope you have a high-spec computer. Also, it won't write anything to a…
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)