SynapCores

SynapCores v2.5.2-ce: steady memory on long-running engines

By , Founder & CTO, SynapCores · Published

SynapCores Community Edition v2.5.2-ce

Community Edition · free · seamless upgrade from v2.5.x

v2.5.2-ce is a stability release. The headline is flat memory on long-running engines: two retention bugs that made the process creep on continuous-write and CREATE/DROP-churn workloads are fixed, and a latent ALTER TABLE index bug that the fix exposed is corrected along the way. Additive and drop-in — no data migration, no config changes.

The problem: memory that climbed instead of plateauing

On a busy engine, memory should settle. On v2.5.1 and earlier it didn't. Two paths leaked:

  1. Every uncertified single-row write wiped the indexes. A 1-row INSERT, or the statement after any UPDATE/DELETE, could fail an internal index-publication audit — on something as ordinary as a signed number, a table with no search index, or UPDATE … SET last_used_at = NOW(). On failure the engine emptied every index of every table, and the next statement rebuilt from a full scan that materialized every column. On a 35.7k-row × 51-column table that was ~0.45 s and ~165 MB of transient memory per statement — and it was spiking one of our own production engines by ~190 MiB on every visitor beacon.

  2. Every DROP TABLE thrashed RocksDB. Dropping a collection fully compacted all nine column families, which parked flushed memtables in the transaction DB's conflict-check history and orphaned everything the shared 256 MiB block cache had just loaded. The growth was all in RocksDB's C++ heap, and none of it came back at idle.

On a small host the two together crept until the cgroup throttled the process and the watchdog restarted it.

The fix, measured

Throwaway engines, 40 write cycles 15 s apart then idle, retained RSS:

Workload v2.5.1-ce v2.5.2-ce
App rebuild — 2× DROP, CREATE, INSERT…SELECT +281 MB +8 MB
2× DROP + 2× CREATE + INSERT…VALUES +333 MB +36 MB
Prod-like — beacon INSERTs + empty-table DROPs +248 MB −1 MB
Result cache (30 s TTL), then 4 min idle +131 MB −4 MB
  • Live indexes now survive single-row writes. The audit certifies signed literals, scalar indexes, and no-index tables; an uncertified single-table autocommit discards only its own table's indexes, not the whole tenant's. If you ever need the old behavior, set AIDB_NATIVE_INDEX_RETENTION=off.
  • DROP TABLE stops churning. Memtable history is bounded (16 MiB/CF, AIDB_ROCKSDB_MEMTABLE_HISTORY_MB), large drops compact only their own key range, small drops leave tombstones to background compaction, and collection-delete scans no longer fill the block cache.

One correctness fix the retention change exposed

Because live indexes now persist across writes, a latent ALTER TABLE bug stopped hiding: column operations edited only the catalog and left stale index data behind. After ALTER COLUMN … SET DATA TYPE an indexed lookup could silently miss existing rows and a UNIQUE index could admit a type-mismatched duplicate; RENAME/DROP COLUMN left indexes registered under the old name. The engine now resets the altered table's live index data after a successful column operation, so the next statement rebuilds it under the current column types. Other tables are untouched.

Also in this release

  • The macOS installer checks for Homebrew before downloading and can offer to start the gateway.
  • Linux user-mode installs keep the release folder; the install counter receives SYNAPCORES_REF.
  • CI stages ONNX Runtime 1.23.2 from verified mirrors.

Upgrade

docker pull synapcores/community:v2.5.2-ce
# or
curl -fsSL https://get.synapcores.com | sh

Seamless from any v2.5.x — same data dir, same gateway.toml, restart to pick up the new binary. Validated on a non-AVX-512 CPU (boots, loads a model, serves an EMBED with no SIGILL) and against the state-asserting feature validator: 316 assertions passed, 0 failed.