Mongoexport to multiple csv files
问题 I have a large mongoDB collection. I want to export this collection to CSV so I can then import it in a statistics package to do data analysis. The collection has about 15 GB of documents in it. I would like to split the collection into ~100 equally sized CSV files. Is there any way to achieve this using mongoexport? I could also query the whole collection in pymongo, split it and write to csv files manually, but I guess this would be slower and would require more coding. Thank you for input.