1

I want to have collection path and index path in different folders of my mongodb.
What are the required changes? My current configuration file is this:

storage:
  dbPath: /db/mongodb
  journal:
    enabled: true

How can I give index path and collection path? Can anyone give me an example?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.