Like RDBMS, OrientDB likewise gives exchange ideas like Commit and Rollback. Submit alludes to shutting the exchange by saving all progressions to the information base. Rollback alludes to recuperating the data set state to where you opened the exchange.
The accompanying assertion is the fundamental language structure of the Commit information base order.
COMMIT
Note − You can utilize this order exclusively in the wake of interfacing with a specific information base and subsequent to starting the exchange.
Example
In this model, we will utilize a similar data set named 'demo' that we made in the past section. We will see the activity of submit exchange and store a record utilizing exchanges.
To begin with, start the exchange utilizing the accompanying BEGIN order.
orientdb {db = demo}> BEGIN
At that point, embed a record into a representative table with the qualities id = 12 and name = satish.P utilizing the accompanying order.
orientdb> INSERT INTO employee (id, name) VALUES (12, 'satish.P')
You can utilize the accompanying order to submit the exchange.
orientdb> commit
In the event that this exchange is effectively dedicated, you will get the accompanying yield.
Transaction 2 has been committed in 4ms