[SERVER-31151] how transactions can be maintained with mongodb Created: 19/Sep/17  Updated: 17/Oct/17  Resolved: 19/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: achla gautam Assignee: Mark Agarunov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

i wanted to know how i can maintain transaction with mongo. as when i try to insert into collection so if something went wrong this that transaction how can i rollback .

eg :
suppose i have 23 records and when i insert i added data with _id as 100 then data is added successfully but as i m using sequence _id should be 24 but what if i insert some other no.
so now i want to rollback whatever i have inserted .



 Comments   
Comment by achla gautam [ 20/Sep/17 ]

thank you for your reply .

Comment by Mark Agarunov [ 19/Sep/17 ]

Hello achla,

Thank you for the report. Currently MongoDB does not support transactions, however there are workarounds to get similar behavior. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group.

Thanks,
Mark

Generated at Thu Feb 08 04:26:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.