Collection created inside a transaction

What changes in Collection created inside a transaction compared with MongoDB and what your application has to do.

This difference is of the Different kind.

What MongoDB does

The collection a transaction creates appears at the same time as the transaction commits.

What TeselaDB does

It is created with a hidden temporary name and renamed on commit. It is visible from that rename until the transaction is committed, and if that commit fails, it stays empty.

What your application has to do

If other sessions must not see the collection empty, create it before the transaction.

See also