Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Export and Import Data:

    1. Export the ZWE VMMC filtered dataset from MongoDB Atlas and import it into the target MongoDB server, the MongoDB docker container.

    2. Copy the exported file into the MongoDB Docker container and run the following command:

      Code Block
      mongoimport --host=localhost --port=27017 --db=db1 --collection=client --file=/data/client2024.json --jsonArray
  1. Set Indexes:

    1. To ensure proper performance, set indexes on the collections listed above.

    2. Export the indexes from MongoDB Atlas by running the following command in the MongoDB shell for each database and collection:

      Code Block
      db.your_collection_name.getIndexes();
    1. Import the indexes into the target MongoDB instance using a Node.js script named 'indexImporter.js'.

      Code Block
      node indexImporter.js db1 client indexFiles/clientIndexes.json

...