#1 2023-04-25 03:43:07

zhangguichao
Member
Registered: 2023-03-21
Posts: 29

Does SynMongoDB support transactions? I didn't find it

Does SynMongoDB support transactions? I didn't find it?

Offline

#2 2023-04-25 07:10:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Does SynMongoDB support transactions? I didn't find it

There was no transaction support in MongoDB until recently.
So we don't support them directly.

But you can still use the transaction commands.
https://www.mongodb.com/docs/manual/cor … perations/

Anyway, I would not go into this direction, but focus on the "aggregate pattern", i.e. try to use atomic CRUD operations with big documents, which are big enough to not need any transaction.
If you need a transaction, it is likely that you are going into the RDBMS model. Therefore, use a RDBMS i.e. SQL database, not MongoDB.

Offline

#3 2023-04-25 07:55:17

zhangguichao
Member
Registered: 2023-03-21
Posts: 29

Re: Does SynMongoDB support transactions? I didn't find it

Thank you~~

Offline

Board footer

Powered by FluxBB