# About Transaction of MyRocks

**URL:** <https://forums.percona.com/t/about-transaction-of-myrocks/6645>\
**Category:** Other MySQL® Questions\
**Created:** [October 21, 2018, 11:02pm UTC](https://forums.percona.com/t/about-transaction-of-myrocks/6645 "2018-10-21T23:02:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuzhiyu](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@fuzhiyu](https://forums.percona.com/u/fuzhiyu)\
**Post date:** [October 21, 2018, 11:02pm UTC](https://forums.percona.com/t/about-transaction-of-myrocks/6645/1 "2018-10-21T23:02:51Z")

</div>

There are several transaction structs in MyRocks，

Rdb\_transaction(Rdb\_transaction\_impl Rdb\_writebatch\_impl) TransactionDB Transaction

I know between the relationship of TransactionDB and Transaction, see the comments of Transaction:To use transactions, you must first create either an OptimisticTransactionDB or a TransactionDB.

howerver, what is the function of Rdb\_transaction(Rdb\_transaction\_impl Rdb\_writebatch\_impl)? what is the relationship of TransactionDB and Rdb\_transaction?
