You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write execution snapshots without ClickHouse async insert #14654
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.
Activity