Mongo export vs language based export

Hi folks, just wanted to see if I’m not doing something terrible here. From a performance perspective does mongoexport provide any benefits over just connecting to a collection via a driver and iterating over it to save the data?

I’m trying to automate the export of some collections (not a full dump) of my database, and I could just easily do so using my own app code to create a job (instead of having to modify my docker image to include mongo export)

What is the preferred method in this situation? Is the driver based solution is ok?

Thanks folks

I like to use language drivers. I’m partial to Python. Whatever works for you.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.