// sql server · wal, redo & durability

DELAYED_DURABILITY

Let commits return before their log records are hardened to disk.

Padrão
DISABLED
Range
DISABLED, ALLOWED, FORCED
Restart needed
Não
Default checked on
SQL Server 2025

O que faz

DISABLED: every commit waits for the log flush. ALLOWED: transactions that commit WITH (DELAYED_DURABILITY = ON) do not wait. FORCED: no commit waits. Log records are flushed when a 60KB log buffer fills, on sp_flush_log, or when a fully durable transaction commits.

Valor padrão

DISABLED. DISABLED (SQL Server 2025); the option exists from SQL Server 2014.

Check the current value

SELECT name, delayed_durability_desc
FROM sys.databases
WHERE name = DB_NAME();

Change it

ALTER DATABASE CURRENT SET DELAYED_DURABILITY = ALLOWED;

-- then, per transaction:
COMMIT TRANSACTION WITH (DELAYED_DURABILITY = ON);

No restart; applies to transactions that commit after the change.

When to change it

When WRITELOG waits dominate on a workload of many tiny transactions whose last few can be lost, such as telemetry ingestion. Prefer ALLOWED and opt in per transaction.

What can go wrong

A crash or failover loses commits that clients were told succeeded.

The closest setting on other engines

MotorConfiguraçãoPadrãoRestart
SQL Server DELAYED_DURABILITY this page DISABLED Não
PostgreSQL synchronous_commit on Não
MySQL innodb_flush_log_at_trx_commit 1 Não
SQLite synchronous 2 (FULL) Não

Questions about DELAYED_DURABILITY

What is the default value of DELAYED_DURABILITY in SQL Server?

DISABLED. DISABLED (SQL Server 2025); the option exists from SQL Server 2014.

Does changing DELAYED_DURABILITY require a restart?

No. No restart; applies to transactions that commit after the change.

When should I change DELAYED_DURABILITY?

When WRITELOG waits dominate on a workload of many tiny transactions whose last few can be lost, such as telemetry ingestion. Prefer ALLOWED and opt in per transaction.

Back to all SQL Server settings, or check the SQL Server manual for every option.

// one client for every engine

Check DELAYED_DURABILITY on your own server

SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.