Skip to content

Write execution snapshots without ClickHouse async insert #14654

Closed

Description

@ChiragAgg5k

Tracks PR #14652.

Plan

Goal: Stop async createExecution ids from returning 404 execution_not_found on getExecution for growing stretches under load, by making execution snapshot writes to ClickHouse fast enough that the executions worker keeps up.

What changes:

  • src/Appwrite/Execution/Store.php: insertRows() sends async_insert=0 on every insert, so one-row snapshots no longer wait out the ClickHouse async insert flush (p50 ~175 ms → ~3 ms, per the PR's benchmark on a stock 2.5.0 stack).
  • tests/unit/Execution/StoreTest.php: new testWritesBypassAsyncInsertBuffer asserts upsert and delete snapshots both send async_insert=0.
  • The linked PR is the full change. A short read-after-write window remains because snapshots still go through the v1-executions queue; writing the pending snapshot synchronously on the API path was measured and rejected in the PR.

Done when:

Activity

  1. self-assigned this
    on Oct 19, 2026
  2. added
    product / databases
    product / functions
    product / self-hosted
    product / vcs
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / databasesproduct / functionsproduct / self-hostedproduct / vcs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions