This repo contains some code samples for a DevCenter blog post:
- Python 3
- install required libs:
pip3 install -r requirements.txt
- For
archive.py
andfederated_queries.py
you will need the URI of your federated instance. - For
insert.py
andremove.py
you will need your MongoDB Atlas URI.
Inserts documents in test.orders
of the specified MongoDB cluster.
This script uses the new $out stage in order to archive docs from our Atlas cluster to a S3 JSON file.
Removes the documents that we have archived.
This script checks that we can still access 100% of the data using the federated instance.