# Database Error " could not complete because of conflict with concurrent transaction compiled"

**URL:** <https://discourse.getdbt.com/t/database-error-could-not-complete-because-of-conflict-with-concurrent-transaction-compiled/14432>\
**Category:** Help\
**Tags:** best-practice, redshift, dbt-core\
**Created:** [July 22, 2024, 10:45am UTC](https://discourse.getdbt.com/t/database-error-could-not-complete-because-of-conflict-with-concurrent-transaction-compiled/14432 "2024-07-22T10:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qnywdynt](https://avatars.discourse-cdn.com/v4/letter/q/779978/32.png) [@qnywdynt](https://discourse.getdbt.com/u/qnywdynt)\
**Post date:** [July 22, 2024, 10:45am UTC](https://discourse.getdbt.com/t/database-error-could-not-complete-because-of-conflict-with-concurrent-transaction-compiled/14432/1 "2024-07-22T10:45:18Z")

</div>

I’ve been trying to increase the number of threads of my dbt, but the process always gets this error if the thread number is set to be more than 1:

```auto
Database Error in model model_name (path_to_model.sql) could not complete because of conflict with concurrent transaction compiled Code at target/run/path_to_model.sql

```

My current dbt (dbt-core) version: 1.8.3  
Plugins:

- redshift: 1.8.1
- postgres 1.8.2

Instance: PostgreSQL 8.0.2 (Amazon Redshift)

Does anyone know why this error possibly occurred and how to mitigate it? Thanks.
