# Executions data save on success false still executes sql statements?

**URL:** <https://community.n8n.io/t/executions-data-save-on-success-false-still-executes-sql-statements/25591>\
**Category:** Questions\
**Tags:** core\
**Created:** [26. April 2023 um 09:16 UTC](https://community.n8n.io/t/executions-data-save-on-success-false-still-executes-sql-statements/25591 "2023-04-26T09:16:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slenderwrist](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@slenderwrist](https://community.n8n.io/u/slenderwrist)\
**Post date:** [26. April 2023 um 09:16 UTC](https://community.n8n.io/t/executions-data-save-on-success-false-still-executes-sql-statements/25591/1 "2023-04-26T09:16:18Z")

</div>

## Describe the problem/error/question

hi, i’ve set `export EXECUTIONS_DATA_SAVE_ON_SUCCESS=none` via environment variables.  
did `source .bashrc`  
stopped/started n8n  
have a single active workflow  
after the executions are run (all are success, assume just a dummy workflow), when i check from sqlite; SELECT count(\*) from execution\_entity ee; i get 0 rows (which is expected as far as i understand)  
but when i check n8n logs i see;

query is slow: UPDATE “execution\_entity” SET “status” = …  
query is slow: INSERT INTO “execution\_entity”(“id”, …  
query is slow: SELECT “WorkflowEntity”.“staticData” AS …

is it normal for these queries to run, since when i `SELECT count(*) from execution_entity ee;` i get 0 row, but there is the log for `insert into execution_entity` ?

## What is the error message (if any)?

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 0.222.3
- **Database (default: SQLite):** default SQLite
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** default own
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** npm
- **Operating system:** linux opensuse 15.4

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [26. April 2023 um 14:39 UTC](https://community.n8n.io/t/executions-data-save-on-success-false-still-executes-sql-statements/25591/2 "2023-04-26T14:39:52Z")

</div>

Hi @slenderwrist, welcome to the community! n8n would still use the database to indicate an execution is running with this setting, but it would not persist the actual execution data.

You could increase the slow query threshold to get rid of these “query is slow” messages by adjusting the `DB_LOGGING_MAX_EXECUTION_TIME` [environment variable](https://docs.n8n.io/hosting/environment-variables/environment-variables/#n8n-logs).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [25. Juli 2023 um 14:40 UTC](https://community.n8n.io/t/executions-data-save-on-success-false-still-executes-sql-statements/25591/3 "2023-07-25T14:40:44Z")

</div>

Geschlossen, am 25. Juli 2023 um 14:40 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
