ApexBase
ApexBase is a high-performance embedded HTAP database with a Rust core and a Python-first API.
Install it, write local .apex table files, run analytical SQL, import/export DataFrames, and optionally expose the same data through PostgreSQL Wire or Arrow Flight. No separate database service is required.
Why ApexBase
| What you need | What ApexBase gives you |
|---|---|
| Fast local analytics | Columnar storage, vectorized execution, SQL aggregations, joins, CTEs, windows, and indexes |
| Low-friction Python workflows | ApexClient, Pandas / Polars / PyArrow conversion, file table functions, and simple local persistence |
| One engine for mixed workloads | HTAP design: fast writes, point lookups, analytical scans, transactions, and MVCC |
| Search built in | Full-text search, fuzzy matching, vector TopK search, and float16 embedding storage |
| Tool compatibility | PostgreSQL Wire for database clients and Arrow Flight for fast columnar transfer |
Install
Build from source:
30-Second Example: FTS + SQL + Vector Search In One Local File
# FTS recall + structured SQL guardrails + pgvector-style semantic rerank.
=
ApexBase gives you pgvector-style semantic search, SQL filters, and full-text search in the same embedded database file. It is the kind of stack you would otherwise assemble from SQLite/DuckDB + FTS + pgvector, but without a server process or a separate search/vector service; results still convert directly to Pandas, Polars, or Arrow.
Performance At A Glance
Latest local snapshot: ApexBase 1.19.0, 200k-row tabular dataset, 200k-vector dataset, Apple arm, Python 3.12.
| Area | Snapshot |
|---|---|
| Fair OLAP + OLTP comparison | 38 / 38 wins against SQLite and DuckDB in the benchmark harness |
| GROUP BY | 40.0x faster than DuckDB in the representative snapshot |
| FTS search | 35.6x faster than SQLite in the representative snapshot |
| Batch vector TopK cosine | 13.9x faster than DuckDB in the representative snapshot |
Benchmarks are workload-sensitive. See the full reproducible setup in the Performance documentation.
Documentation
Start here: https://birchkwok.github.io/ApexBase/
| Goal | Page |
|---|---|
| Get running quickly | Installation and Quick Start |
| Understand the model | Core Concepts |
| Use the Python API | Python Client Guide and API Reference |
| Write SQL | SQL Guide |
| Import files and DataFrames | Data Import |
| Use database tools or Arrow clients | Server Protocols |
| Search text or vectors | Full-Text Search and Float16 Vectors |
| Embed from Rust | Rust Embedded API |
Interfaces
# Embedded Python
# PostgreSQL Wire + Arrow Flight together
# Individual protocol servers
License
Apache-2.0