# How does custom views update the database across different Daml transactions

**URL:** <https://forum.canton.network/t/how-does-custom-views-update-the-database-across-different-daml-transactions/6567>\
**Category:** App Development\
**Tags:** custom-views\
**Created:** [May 17, 2023, 12:34am UTC](https://forum.canton.network/t/how-does-custom-views-update-the-database-across-different-daml-transactions/6567 "2023-05-17T00:34:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huw](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/huw/32/2343_2.png) [@huw](https://forum.canton.network/u/huw)\
**Post date:** [May 17, 2023, 12:34am UTC](https://forum.canton.network/t/how-does-custom-views-update-the-database-across-different-daml-transactions/6567/1 "2023-05-17T00:34:09Z")

</div>

When custom views makes updates to the database, does it guarantee that all updates for a Daml transaction are executed atomically? To clarify, a Daml transaction can have multiple events, each of which is projected to a `JdbcAction`– are these `JdbcAction`s executed in a single database transaction?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 17, 2023, 4:52am UTC](https://forum.canton.network/t/how-does-custom-views-update-the-database-across-different-daml-transactions/6567/2 "2023-05-17T04:52:55Z")

</div>

Yes a Daml transaction is mapped to one database transaction.
