TrailDB

discontinued

by AdRoll · since 2016 · also known as traildb

AdRoll's C library for compressed, immutable per-user event trails; dormant since 2019.

time-seriesevent storeembedded libraryopen source (permissive)legacy

discontinued. Last release 0.6 and last code commit November 2019; repo unmaintained. Columnar engines such as DuckDB or ClickHouse cover the use case.

Overview

TrailDB is a C library and command-line tool for storing and querying series of events grouped by a key such as a user ID. You build an immutable TrailDB file from raw logs; it sorts each trail by time and compresses it using the predictability of the data, and you can scan or filter the encoded trails without fully decompressing them. AdRoll built it in 2014 to process trillions of ad events, open-sourced it in 2016 and shipped bindings for Python, Go, R, D and Haskell. Version 0.6 was the last release and code commits stopped in 2019, so treat it as a finished tool rather than a maintained project.

Strengths & trade-offs

Strengths

  • +Very high compression on event data while still allowing direct queries
  • +Groups events per entity and time, which suits funnel, session and sequence analysis
  • +Immutable files are simple to cache, copy and process in parallel
  • +Small C core with bindings for several languages

Trade-offs

  • −Write-once: files must be rebuilt or merged to add data
  • −No SQL or ad-hoc aggregation engine; analysis code is yours to write
  • −Unmaintained since 2019

Great for

  • +Offline analysis of clickstream or user event sequences
  • +Compact archival of event logs per user

Think twice for

  • −Online updates or point writes
  • −Ad-hoc SQL analytics

Capabilities

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

✓Columnar storage
✓Durable persistence
✓Compression
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–In-memory
–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
Manual
Multi-region
No
Transactions
None
Consistency
Strong
Schema
Strict
Architecture
Embedded
Query languages
C API with event filters

Single files per partition; large deployments shard by time or key and process files in parallel.

Deployment

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

Ecosystem

apis & protocolsC API, tdb CLI
client languagesC, C++, Python, Go, R, D, Haskell, Rust, OCaml

Alternatives to TrailDB

Compare all→
DuckDBColumnar / OLAP63.7

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

traildb vs duckdb →
ClickHouseColumnar / OLAP69.8

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

traildb vs clickhouse →
Apache DruidColumnar / OLAP35.0

Real-time analytics database for sub-second slice-and-dice over streaming event data.

traildb vs apache-druid →
chDBColumnar / OLAP21.1

Embedded, in-process OLAP engine powered by ClickHouse, used mainly from Python.

traildb vs chdb →
PrometheusTime-Series70.8

CNCF-graduated pull-based monitoring system with a local TSDB, PromQL and alerting rules.

traildb vs prometheus →
ArcticDBTime-Series14.4

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

traildb vs arcticdb →

TrailDB FAQ

What is TrailDB?

TrailDB is a time-series database by AdRoll, first released in 2016. TrailDB is a C library and command-line tool for storing and querying series of events grouped by a key such as a user ID. You build an immutable TrailDB file from raw logs; it sorts each trail by time and compresses it using the predictability of the data, and you can scan or filter the encoded trails without fully decompressing them. AdRoll built it in 2014 to process trillions of ad events, open-sourced it in 2016 and shipped bindings for Python, Go, R, D and Haskell. Version 0.6 was the last release and code commits stopped in 2019, so treat it as a finished tool rather than a maintained project.

Is TrailDB open source?

Yes. TrailDB is open source. License: MIT License.

Does TrailDB support ACID transactions?

No. TrailDB does not provide ACID transactions; its consistency model is strong.

Does TrailDB scale horizontally?

TrailDB has no built-in sharding; scaling out means partitioning data in your application. It is comfortable at medium scale (≤ 10 TB).

How can I run TrailDB?

You can self-host it and embed it in your application.

What is TrailDB best for?

TrailDB is a strong fit for offline analysis of clickstream or user event sequences and compact archival of event logs per user. Think twice for online updates or point writes.

What are the best alternatives to TrailDB?

Common alternatives to TrailDB include DuckDB, ClickHouse, Apache Druid, chDB and Prometheus. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is TrailDB still maintained?

TrailDB is discontinued. Last release 0.6 and last code commit November 2019; repo unmaintained. Columnar engines such as DuckDB or ClickHouse cover the use case.

How popular is TrailDB?

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