# Why does dynatrace shows 2x SQL Commit

**URL:** <https://community.dynatrace.com/t/why-does-dynatrace-shows-2x-sql-commit/54888>\
**Category:** Extensions\
**Tags:** databases, sql, distributed-tracing, oracle\
**Created:** [February 5, 2026, 3:05pm UTC](https://community.dynatrace.com/t/why-does-dynatrace-shows-2x-sql-commit/54888 "2026-02-05T15:05:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielkl](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@danielkl](https://community.dynatrace.com/u/danielkl)\
**Post date:** [February 5, 2026, 3:05pm UTC](https://community.dynatrace.com/t/why-does-dynatrace-shows-2x-sql-commit/54888/1 "2026-02-05T15:05:07Z")

</div>

Hi,

I am investigating a database issue where commit operations seem to take too much time.

My application creates two transactions. First, it starts the main transaction. Then it starts a second transaction, which commits after performing the first insert.

I am trying to understand why, in the distributed traces, I can see a double commit after the first insert, and why there is no commit shown after the second insert—where the main transaction should normally end and commit.

 ![doublecommit.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/f/d/fd4b959b0f316400d33c39557a52f4e65bfe8ba6.jpeg)

---

<div class="post-metadata">

**Author:** ![AravindhanV](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@AravindhanV](https://community.dynatrace.com/u/AravindhanV)\
**Post date:** [February 26, 2026, 1:17pm UTC](https://community.dynatrace.com/t/why-does-dynatrace-shows-2x-sql-commit/54888/2 "2026-02-26T13:17:59Z")

</div>

hi&nbsp;[@danielkl](https://community.dynatrace.com/user/100626),

Trying to summarize the understanding for the same.

1. **Application Opens Two Transactions**  
If the application starts a main transaction and then a nested/secondary transaction, each performs its own COMMIT. Dynatrace detects both and aggregates them as 2× COMMIT when they occur consecutively.  
2. **Autocommit Enabled (DB Driver Behavior)**  
When **autocommit** is ON, the database driver may automatically commit after a statement, and the application framework may issue an explicit commit afterwards. This results in two commit operations showing as 2× in Dynatrace.  
3. **Connection Pool / Framework Commit-on-Close**  
Some frameworks perform a commit when commit() is called and again when the connection is closed or returned to the pool. Dynatrace identifies both operations and aggregates them.  
4. **Dynatrace Aggregation Logic**  
Dynatrace groups identical, consecutive SQL operations (such as repeated commits) for cleaner visualization, which is similar to how it aggregates repeated or identical queries in PurePaths.

The application may issue multiple COMMIT operations, and Dynatrace aggregates them into a single ‘2× COMMIT’ entry for clearer visualization.  
Hope this helps you to understand.Thanks
