SynapCores v2.1.0-ce — Release Notes
v2.1 delivers DuckDB-class analytics on your own S3 bucket, flat memory under sustained load, high-throughput bulk ingestion, and a real ONNX inference runtime — all in the same single binary.
New Features
Parallel analytics engine — DuckDB-class speed on your own bucket
Grouped aggregation now fans out across every core and merges partials;
dictionary-encoded Parquet columns are aggregated by code instead of being
expanded to strings; COUNT(DISTINCT) rides the same parallel path.
On a 13-query suite over identical S3 Parquet objects, v2.1.0 runs at a
median 1.08× of DuckDB 1.5.5 — parity — and wins outright on 4 of 13
shapes, including a two-column GROUP BY over 230k rows at 1.9× faster
(2.7 ms vs 5.2 ms). An external join + GROUP BY across 189k × 28k rows
answers in 13 ms — dead even with DuckDB.
Business benefit: interactive dashboards and exploratory joins directly on
the Parquet you already have in S3 — no warehouse, no copy step, no second
vendor. Tune with AIDB_AGGREGATE_WORKERS (optional; defaults are right for
most hosts).
Warm S3 metadata and block cache — one round trip per query
Foreign-table queries previously re-paid ~80 object-store round trips each.
v2.1 keeps an ETag-validated metadata cache and a block cache
(AIDB_LAKE_DATA_CACHE_MB, default 64), bringing a warm query down to one
round trip. Changed objects are detected by ETag, so the cache never serves
a replaced file's bytes.
Business benefit: on a real S3 endpoint this removes 0.8–1.6 seconds of pure network latency from every lake query — the difference between a dashboard that feels live and one that feels remote.
Flat memory under sustained load
The engine now runs on jemalloc, and every memory-heavy operator — joins,
sorts, aggregates, result materialization — charges a per-query budget
(256 MiB default, AIDB_QUERY_MEMORY_BYTES). A query that exceeds its budget
returns a clear error; the engine keeps serving everyone else.
Proof run on the release build: 80 consecutive heavy aggregation queries, including 40 over a 5M-row table — RSS moved ±12 MiB.
Business benefit: you can put SynapCores behind a refreshing dashboard and leave it running. Memory is predictable, capacity planning is possible, and one oversized query can no longer take the process down.
High-throughput bulk load
The native write path batches documents into bounded chunks, streams uploads, and retains verified indexes through the load.
On the release build: a 1,000,000-row CSV imports at ~20,000 rows/s
sustained, with exact row counts and checksummed aggregates on arrival;
batched INSERT sustains ~25,000 rows/s.
Business benefit: million-row migrations and nightly loads complete in minutes over the standard API — no special tooling, no degradation as the table grows.
MySQL-style type coercion in comparisons and joins
Comparing a numeric column against a text literal now matches numerically:
WHERE int_col = '06' finds 6, and an INT column joins a VARCHAR column by
value ('0123' joins 123). Same-type comparisons are unchanged, and index
probes stay plan-consistent.
Business benefit: data bulk-loaded from CSV or migrated from MySQL "just works" with the queries written against it — no silent empty results from invisible type mismatches.
ONNX Runtime inference backend
The engine now embeds the ONNX Runtime (CPU execution provider) with pinned
NLI cross-encoder models and semantic verification recipes. A new
--onnx-self-test flag runs input-dependent inference cases through the
packaged runtime and reports the backend:
{"backend":"onnxruntime","provider":"CPU","input_dependent":true,"cases":2}
Business benefit: semantic verification and cross-encoder scoring run in-process, next to the data — no Python sidecar, no model-serving infrastructure to operate.
Export the engine's own tables to your data lake
Lake export jobs now accept source_kind=local: any engine table can be
exported to Parquet on S3 on a schedule, with read-back verification —
previously only external MySQL sources could be exported. Jobs now also
report a live next_run_at.
Business benefit: one instance can archive its own hot tables to cheap object storage and keep querying them in place — tiered storage without an ETL tool.
AutoML observability
automl_experiments, automl_models and automl_trials are queryable SQL
catalogs; SHOW MODELS lists deployed models; max_trials drives a real
hyperparameter search; training reports score_basis, failed_trials,
trials_attempted and ignored_options; DECIMAL columns are accepted as
features.
Business benefit: model training is auditable with plain SQL — what was tried, what failed, and what's deployed, without leaving the database.