kdb+

active

by KX · since 2003 · also known as KDB-X, kdb, q, KX

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

time-seriescolumnar / olaprelationaldatabase engineproprietarymature

Overview

kdb+ from KX is a compact column-oriented database fused with q, a terse vector programming language, and has been the default tick-data store at banks, exchanges and hedge funds for two decades. The classic setup, a tickerplant feeding an in-memory real-time database while history is written to date-partitioned splayed files, delivers very fast queries over long time ranges on modest hardware. In November 2025 KX made KDB-X, the next generation of kdb+, generally available, together with a Community Edition that is free for personal and commercial use within resource limits, and PyKX for working from Python. The q learning curve and commercial licensing at scale remain the main barriers.

Strengths & trade-offs

Strengths

  • +Very low-latency analytics over in-memory and date-partitioned on-disk tables
  • +As-of and window joins built for trade/quote alignment
  • +Tiny binary and footprint; runs well on a single large server
  • +Tickerplant pub/sub pattern unifies real-time and historical queries
  • +Decades of production use in front-office finance

Trade-offs

  • −q is terse and niche; hiring and onboarding are hard
  • −Commercial licensing at scale is expensive and opaque
  • −Clustering, HA and replication are build-it-yourself architecture patterns
  • −Small open-source ecosystem compared with SQL databases

Great for

  • +Equities, FX and futures tick capture
  • +Trade surveillance and best-execution analysis
  • +Quant research on historical market data
  • +Real-time risk and P&L
  • +High-frequency sensor data in telecoms and manufacturing

Think twice for

  • −Teams without q or PyKX expertise
  • −General web application backends
  • −Log and text search

Capabilities

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

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

Scale & consistency

Comfortable data size
Large · ≤ 1 PB
Horizontal scaling
Manual
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Strict
Architecture
In memory, Single node, Client server
Query languages
q, qSQL, Python (PyKX)

Scale out by partitioning history across segments and hosts behind q gateways; real-time data lives in RAM.

Deployment

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

available on · AWS

Ecosystem

apis & protocolsq IPC protocol, HTTP, WebSocket
client languagesPython, Java, C, C#

Alternatives to kdb+

Compare all→
QuestDBTime-Series34.1

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

kdb-plus vs questdb →
DolphinDBTime-Series11.6

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

kdb-plus vs dolphindb →
ArcticDBTime-Series14.4

Serverless DataFrame database from Man Group: Pandas in, versioned columnar data on S3 out.

kdb-plus vs arcticdb →
ClickHouseColumnar / OLAP69.8

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

kdb-plus vs clickhouse →
TimescaleDBTime-Series47.1

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

kdb-plus vs timescaledb →
InfluxDBTime-Series51.0

Purpose-built time-series database, rebuilt in Rust on Arrow, DataFusion and Parquet for version 3.

kdb-plus vs influxdb →

kdb+ FAQ

What is kdb+?

kdb+ is a time-series database by KX, first released in 2003. kdb+ from KX is a compact column-oriented database fused with q, a terse vector programming language, and has been the default tick-data store at banks, exchanges and hedge funds for two decades. The classic setup, a tickerplant feeding an in-memory real-time database while history is written to date-partitioned splayed files, delivers very fast queries over long time ranges on modest hardware. In November 2025 KX made KDB-X, the next generation of kdb+, generally available, together with a Community Edition that is free for personal and commercial use within resource limits, and PyKX for working from Python. The q learning curve and commercial licensing at scale remain the main barriers.

Is kdb+ open source?

No. kdb+ is proprietary, closed-source software. License: Commercial; KDB-X Community Edition free with resource limits.

Does kdb+ support ACID transactions?

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

Does kdb+ scale horizontally?

kdb+ has no built-in sharding; scaling out means partitioning data in your application. It is comfortable at large scale (≤ 1 PB).

How can I run kdb+?

You can self-host it and use the vendor's managed cloud. Managed offerings include Amazon FinSpace with Managed kdb Insights. It is available on AWS.

What is kdb+ best for?

kdb+ is a strong fit for equities, FX and futures tick capture; trade surveillance and best-execution analysis; and quant research on historical market data. Think twice for teams without q or PyKX expertise.

What are the best alternatives to kdb+?

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

How popular is kdb+?

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