Adapt your application

The differences with MongoDB that most affect an application that migrates.

Check the differences with MongoDB that most affect an application that migrates and change the code where needed.

Requirements

What affects it most

These differences change the behaviour of an application that comes from MongoDB the most.

Order without sort

A find without sort returns documents in their key order. Add sort where you need a given order.

Deprecated features

What MongoDB 9.0 marks as deprecated does not exist. Replace each use with its successor.

Majority reads

local and available already read only majority-confirmed data, so a read at those levels never returns a write that could still be rolled back.

Global unique indexes

A unique index is unique across the cluster, also with a shard key.

Keys that always grow

They concentrate writes on one range. Review the collections with a lot of traffic.

Check

Your application's tests pass against a TeselaDB cluster with the migrated data.

Common problems

  • A test fails because it expected insertion order in a query without sort. Add sort to the query.

See also