Cloud

Write an awesome doc for cloud and how to deploy our apps using technologies like AWS, GitHub actions, CI/CD and Docker. Also a very comprehensive documentation around AWS.

View on GitHub

DocumentDB

[!TIP]

If you create an index in the AWS DocumentDB in the background then you cannot have two of them at the same time. AWS DocumentDB will cancel the first one and will work on the seconds one.

[!TIP]

What will happen when readConcern is set to prefer to read from the secondary?

  • In this case DocumentDB will not define the indexes in the database.
    • A workaround would be to change the readConcern to primary in the connection string which means that then your ODM will try to read form the primary node.
  • On the contrary in a self-hosted MongoDB, the readConcern=secondary will create those indexes :).

Learn more about index selection in MongoDB, and DocumentDB.

Indexes in MongoDB

Query Plans

[!TIP]

An $or operator in a query means that first condition should be fulfilled, union with all documents that match the other condition. If you don’t have a separate index for each of the conditions MongoDB will perform a collection scan (COLLSCAN) anyway.

Ref.