Skip to content

v2.5.2-ce — Steady memory on long-running engines

Released 2026-12-01 · GitHub release

v2.5.2-ce fixes two memory-retention bugs that made the engine's memory creep on hosts doing continuous writes or repeated CREATE/DROP churn — the pattern that was forcing watchdog restarts on small production boxes — and corrects a table's index state after ALTER TABLE. Additive and drop-in: no data migration, no config change. Community Edition, free, seamless upgrade from any v2.5.x.

Why it matters

On a busy engine, memory should plateau. Before this release it didn't: every uncertified single-row write rebuilt a table's indexes with a full column scan, and every DROP TABLE fully compacted all nine column families, parking memtables and orphaning the shared block cache. On a small host the process crept until the cgroup throttled it and the watchdog restarted the engine. If you run SynapCores behind high-frequency writes (event beacons, telemetry, per-request upserts) or app flows that drop and recreate tables, this is the upgrade that makes memory flat.

Measured

Throwaway engines, 40 write cycles 15s apart then idle (macOS arm64), 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 (30s TTL), then 4 min idle +131 MB −4 MB

Per-statement cost on a 35.7k-row × 51-column indexed table dropped from ~0.45 s / ~165 MB to negligible.

Live indexes survive single-row writes

A 1-row INSERT, and the statement after any UPDATE/DELETE, no longer wipe and full-scan-rebuild a table's indexes. The root cause was an index-publication audit that couldn't certify common autocommit writes — signed numeric literals, scalar-index tables, tables without a search index, a plain UPDATE … SET last_used_at = NOW() — and on failure emptied every index of every table, so the next statement rebuilt from a full scan that materialized every column.

  • Certification now accepts signed numeric literals, certifies scalar indexes on UPDATE/DELETE, and passes tables that have no indexes.
  • An uncertified single-table autocommit discards only its own table's indexes, not the whole tenant's.
  • Backfill reads only the indexed columns and _id.
  • Escape hatch: AIDB_NATIVE_INDEX_RETENTION=off restores the previous wipe policy without a release.

DROP TABLE stops churning memory

DROP and collection-delete no longer thrash RocksDB:

  • Memtable history is bounded explicitly — 16 MiB per column family (AIDB_ROCKSDB_MEMTABLE_HISTORY_MB; 0 restores RocksDB's default).
  • DROP synchronously compacts only a large table's own key range (≥ 8 MiB removed) on the blocking pool; small drops leave their tombstones to background compaction.
  • delete_collection's scans no longer fill the shared block cache.

All of the retained growth was RocksDB's C++ heap, and none of it came back at idle — so the effect on a long-running host is a flat memory curve instead of a slow climb.

ALTER TABLE resets live index data (correctness)

With live indexes now retained across certified writes, a latent ALTER TABLE bug became visible: column operations edited only the catalog and left stale index data behind.

  • ALTER COLUMN … SET DATA TYPE: keys built under the old type (INT 5) stopped matching probes normalized to the new type (DOUBLE 5.0), so indexed lookups silently missed existing rows and a UNIQUE index admitted a type-mismatched duplicate.
  • RENAME COLUMN / DROP COLUMN: indexes stayed registered under the old name and answered with stale keys if that name was re-added.
  • ADD COLUMN … DEFAULT: the backfill rewrote rows without index maintenance.

After a successful column operation the altered table's live index data is now reset (definitions untouched), so the next statement rebuilds the index from stored rows under the current column types. Other tables keep their live indexes.

Also in this release

  • macOS installer checks for Homebrew before downloading and can offer to start the gateway with the exact steps.
  • Linux user-mode install (option 2) keeps the release folder; the install counter now receives SYNAPCORES_REF.
  • CI: ONNX Runtime 1.23.2 is staged from verified mirrors (upstream returns 404).

Install / upgrade

docker pull synapcores/community:v2.5.2-ce
# pinned digest:
# docker pull synapcores/community@sha256:ea9f27ae096198e77514a7fe1ebc0c2fadbe33e264b0dc07320455b343c0e194
curl -fsSL https://get.synapcores.com | sh

Seamless upgrade from any v2.5.x — same data dir, same gateway.toml. Restart the container/service 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.