Kerf

maintenance

by Kevin Lawler (Kerf Software) · since 2015 · also known as Kerf1, Kerf2, Kerf Software

Columnar tick database and array language from Kona's author, with JSON and SQL syntax; open-sourced in 2022.

time-seriescolumnar / olaprelationaldatabase engineopen source (permissive)legacy

maintenance. Commercial product open-sourced (BSD-2-Clause) in 2022; occasional maintenance commits since, and the Kerf2 rewrite is unfinished.

Overview

Kerf is a K/q-style system for financial time series: an interpreted array language and a columnar tick database in one small C binary, built by Kevin Lawler (author of the Kona K implementation) and first sold commercially by Kerf Software around 2015. Unlike kdb+, it uses JSON literals for data and accepts SQL-like select statements, which makes it gentler for people who do not read K. Tables can live in memory or be memory-mapped to disk for transactional writes, and it targets trading platforms, feed handlers, log processing and real-time analytics. The complete Kerf1 was released under BSD-2-Clause in 2022; Kerf2, a concurrent C++ rewrite, is public but explicitly incomplete. Commits are occasional.

Strengths & trade-offs

Strengths

  • +Vector language plus columnar tick store in one small binary
  • +JSON data literals and SQL-style selects lower the barrier versus kdb+/q
  • +Memory-mapped on-disk tables with transactional writes
  • +Permissive BSD license since 2022

Trade-offs

  • −Essentially a one-person project with sporadic maintenance
  • −Kerf2 rewrite is incomplete; Kerf1 lacks multi-core concurrency
  • −Tiny ecosystem and few production references

Great for

  • +Experimenting with array-language time-series analytics
  • +Tick-data research without a kdb+ license
  • +Log-file and CSV crunching from a REPL

Think twice for

  • −Teams needing a supported, multi-node time-series platform
  • −General OLTP applications

Capabilities

Native or official first-party support · 6 of 25 tracked

✓Joins
✓JSON
✓Columnar storage
✓In-memory
✓Durable persistence
✓Compression
–Transactions
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Flexible
Architecture
In memory, Single node, Client server
Query languages
Kerf language, SQL-like select

Single process; memory-mapped tables can exceed RAM up to the virtual address limit.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsNetwork IPC clients (Java, Node.js, Python, R)
client languagesJava, JavaScript, Python, R

Alternatives to Kerf

Compare all→
kdb+Time-Series31.8

Column-store time-series engine with the q language, a fixture of capital-markets tick data.

kerf vs kdb-plus →
QuestDBTime-Series34.1

Columnar time-series SQL database built for market data and very high ingest rates.

kerf vs questdb →
DolphinDBTime-Series11.6

Distributed time-series database and scripting platform for quant finance and industrial analytics.

kerf vs dolphindb →
ClickHouseColumnar / OLAP69.8

Open-source columnar OLAP database known for very fast aggregations over billions of rows.

kerf vs clickhouse →
DuckDBColumnar / OLAP63.7

In-process columnar SQL database: the SQLite of analytics, running inside your app or notebook.

kerf vs duckdb →
TimescaleDBTime-Series47.1

PostgreSQL extension adding hypertables, columnar compression and continuous aggregates for time series.

kerf vs timescaledb →

Kerf FAQ

What is Kerf?

Kerf is a time-series database by Kevin Lawler (Kerf Software), first released in 2015. Kerf is a K/q-style system for financial time series: an interpreted array language and a columnar tick database in one small C binary, built by Kevin Lawler (author of the Kona K implementation) and first sold commercially by Kerf Software around 2015. Unlike kdb+, it uses JSON literals for data and accepts SQL-like select statements, which makes it gentler for people who do not read K. Tables can live in memory or be memory-mapped to disk for transactional writes, and it targets trading platforms, feed handlers, log processing and real-time analytics. The complete Kerf1 was released under BSD-2-Clause in 2022; Kerf2, a concurrent C++ rewrite, is public but explicitly incomplete. Commits are occasional.

Is Kerf open source?

Yes. Kerf is open source. License: BSD 2-Clause License.

Does Kerf support ACID transactions?

Partly. Kerf offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does Kerf scale horizontally?

Kerf does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB).

How can I run Kerf?

You can self-host it.

What is Kerf best for?

Kerf is a strong fit for experimenting with array-language time-series analytics; tick-data research without a kdb+ license; and log-file and CSV crunching from a REPL. Think twice for teams needing a supported, multi-node time-series platform.

What are the best alternatives to Kerf?

Common alternatives to Kerf include kdb+, QuestDB, DolphinDB, ClickHouse and DuckDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Kerf still maintained?

Kerf is in maintenance mode. Commercial product open-sourced (BSD-2-Clause) in 2022; occasional maintenance commits since, and the Kerf2 rewrite is unfinished.

How popular is Kerf?

Kerf ranks #562 of 844 databases on the WhichDB Score (1.3/100), and #36 among time-series databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.