The contention is inside the local machine

An asset library is useful only if a file saved by a foreground generation becomes visible and traceable. It also needs a background scan to discover a pre-existing model, input, or output directory. Those jobs meet at the database writer. SQLite's WAL documentation permits readers alongside a writer, but says that only one writer can proceed at a time.

The October 5 UTC ComfyUI 0.39 release includes a related change to the asset scan. PR #16748 changes the scan from 500 to 200 records per write transaction and puts a 0.12-second gap between non-final batches. The narrow aim is to let an upload registration or output record take the writer turn; it is not a generic database framework.

What changed, and what it costs

The patch selects synchronous=NORMAL only after WAL is confirmed. The direct contract is SQLite's synchronous reference: in WAL mode, NORMAL remains consistent and resists corruption, but a committed transaction can roll back after a power loss or system crash; application crashes are a separate case. FULL adds a WAL sync after each commit. This is a durability decision for output links, tags, and renames, not a setting to hide a lock error.

The release also includes PR #16765: after a prompt finishes, the scan resumes only when the queue is empty, and queued work keeps it paused. Under steady interactive use the scan can therefore finish later — the trade-off chosen is foreground availability over the shortest first scan.

The authors report storage and load measurements in #16748 — their own measurements, not reproduced results or a forecast for another machine. This article did not run ComfyUI, an asset scan, an upload, or those measurements.

Observe a local library without leaking its paths

The related PR #16719 adds CPU and paused-time counters and directory/file counts to the existing elapsed time, plus a closed error_kind. The stated design derives a category from SQLite codes, fixed messages, or OS error numbers instead of exception text, so a diagnostic event is less likely to carry a path or user name. The reporting contract is local to this release and is not a privacy audit.

Use the fields to distinguish three cases before changing anything: high paused time can mean foreground work was given priority; high elapsed time with lower CPU time can indicate waits; an explicit failure category names the class of problem to investigate. Do not infer a device-wide performance regression from one scan, or publish raw path-bearing exceptions to a shared log.

ComfyUI's current security policy describes a local default bind to 127.0.0.1. That policy does not establish that an instance exposed through a reverse proxy, shared machine, or public network has a safe authorization boundary. The repository code is GPL-3.0; model weights, custom nodes, images, prompts, and separately downloaded software need their own terms and trust review.

A deliberately unexecuted disposable-library exercise

This exercise is original and has not been run. Do not apply a PRAGMA to an existing library, and do not use a personal production output directory. First create a disposable local library and a small directory of files that are safe to delete. Record the ComfyUI version, operating system, filesystem type, database location, whether WAL was already enabled, the number of files, and the exact foreground action to try. Do not copy the release's storage numbers into this record.

  1. Start with the release's normal configuration; do not set synchronous=NORMAL yourself. Begin one initial scan and perform one harmless foreground save or upload.
  2. Capture only the defined scan fields and the outcome of the foreground action. Keep paths, prompts, images, tokens, and exception text out of a shared note.
  3. Repeat once with an empty prompt queue and once while a second prompt remains queued. The expected policy distinction is whether the background scan is eligible to resume, not a promised elapsed time.
  4. Mark the exercise failed if the foreground save disappears from the asset library, the event lacks a usable category, the test touches a non-disposable library, or a durability setting changes without an explicit operator decision. Stop rather than add a second database or a permissive fallback.

Observing a local scan and upload needs no model generation. Comparing prompt-queue states needs an already approved test workflow; do not acquire a new model or paid service for this exercise. Record local CPU, disk use, and elapsed time separately from any later generation cost.

If an operator later chooses a different durability policy, make that a documented deployment decision with a backup and recovery plan, not a tweak to hide a lock error. The useful mental model is small: WAL improves reader/writer overlap, a writer still has one turn, and the product must decide whose turn matters when interactive work and indexing meet.

MENTAL MODEL / REASONING ORDER

From an announcement to your own decision.

Primary sources

Compare the announcement with the conditions in the paper and official documentation.

Sources

Publication dates belong to the source; access dates record when it was checked. Community observations are separate from official statements.

01
Official documentationComfyUI v0.39.0 releasePublished: 2026-10-05 · Accessed: 2026-10-06
02
Official documentationComfyUI pull request #16748: write scan inserts in short transactionsPublished: 2026-10-03 · Accessed: 2026-10-06
03
Official documentationComfyUI pull request #16765: resume background scan when the prompt queue is emptyPublished: 2026-10-04 · Accessed: 2026-10-06
04
Official documentationComfyUI pull request #16719: scan timing and failure classificationPublished: 2026-10-01 · Accessed: 2026-10-06
05
Official documentationSQLite Write-Ahead Logging ↗sqlite.orgPublished: Unknown · Accessed: 2026-10-06
06
Official documentationSQLite PRAGMA synchronous ↗sqlite.orgPublished: Unknown · Accessed: 2026-10-06
07
Official documentationComfyUI GPL-3.0 licensePublished: Unknown · Accessed: 2026-10-06
08
Official documentationComfyUI security policyPublished: Unknown · Accessed: 2026-10-06
Saved in this browser only.