BlinkDB

discontinued

by UC Berkeley AMPLab and MIT · since 2012 · also known as Blink DB

Berkeley AMPLab/MIT approximate query engine on Spark/Shark returning answers with error bars from samples.

relationalresearch prototypeopen source (permissive)legacy

discontinued. AMPLab research prototype (2012-2014); alpha releases only and no commits since February 2014.

Overview

BlinkDB was a research system from UC Berkeley's AMPLab and MIT, led by Sameer Agarwal, that answered HiveQL aggregate queries on very large data in seconds by running them on pre-built stratified samples and returning results with confidence intervals. It chose which samples to build from past query workloads and data distribution within a storage budget, and at query time picked a sample to meet a user-specified error or response-time bound. Built on Shark and Spark and compatible with Apache Hive, it was described in a EuroSys 2013 paper and released as alpha code supporting AVG, SUM, COUNT, VAR and STDEV. Development stopped in early 2014; its ideas fed into later approximate query processing work and sampling features in modern engines.

Strengths & trade-offs

Strengths

  • +Bounded-error or bounded-time answers on very large tables
  • +Workload-aware stratified sampling within a storage budget
  • +Influential, well-cited design for approximate query processing

Trade-offs

  • −Alpha-quality code tied to Spark 0.9 and Shark, both long obsolete
  • −Only aggregates with closed-form error estimates were supported
  • −No maintenance since 2014

Great for

  • +Studying approximate query processing and sampling-based analytics
  • +Teaching trade-offs between accuracy and latency

Think twice for

  • −Production analytics
  • −Queries that need exact answers

Capabilities

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

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

Scale & consistency

Comfortable data size
Large · ≤ 1 PB
Horizontal scaling
Native
Multi-region
No
Transactions
None
Consistency
Eventual
Schema
Strict
Architecture
Distributed
Query languages
HiveQL (with error/time bounds)

Ran on Spark clusters; evaluated on multi-terabyte datasets in the research paper.

Deployment

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

Ecosystem

apis & protocolsHive-compatible CLI

Alternatives to BlinkDB

Compare all→
Apache Spark SQLRelational50.3

Spark's SQL and DataFrame engine for large-scale batch, streaming and lakehouse processing.

blinkdb vs apache-spark-sql →
TrinoRelational49.9

Fast distributed SQL query engine for federated analytics across lakes and databases.

blinkdb vs trino →
ClickHouseColumnar / OLAP69.8

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

blinkdb vs clickhouse →
Apache DruidColumnar / OLAP35.0

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

blinkdb vs apache-druid →
DuckDBColumnar / OLAP63.7

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

blinkdb vs duckdb →
IBM NetezzaRelational15.1

IBM's FPGA-accelerated MPP warehouse, now offered as NPS on-prem, in Cloud Pak and as a service.

blinkdb vs ibm-netezza →

BlinkDB FAQ

What is BlinkDB?

BlinkDB is a relational database by UC Berkeley AMPLab and MIT, first released in 2012. BlinkDB was a research system from UC Berkeley's AMPLab and MIT, led by Sameer Agarwal, that answered HiveQL aggregate queries on very large data in seconds by running them on pre-built stratified samples and returning results with confidence intervals. It chose which samples to build from past query workloads and data distribution within a storage budget, and at query time picked a sample to meet a user-specified error or response-time bound. Built on Shark and Spark and compatible with Apache Hive, it was described in a EuroSys 2013 paper and released as alpha code supporting AVG, SUM, COUNT, VAR and STDEV. Development stopped in early 2014; its ideas fed into later approximate query processing work and sampling features in modern engines.

Is BlinkDB open source?

Yes. BlinkDB is open source. License: Apache License 2.0.

Does BlinkDB support ACID transactions?

No. BlinkDB does not provide ACID transactions; its consistency model is eventual.

Does BlinkDB scale horizontally?

BlinkDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB).

How can I run BlinkDB?

You can self-host it.

What is BlinkDB best for?

BlinkDB is a strong fit for studying approximate query processing and sampling-based analytics; and teaching trade-offs between accuracy and latency. Think twice for production analytics.

What are the best alternatives to BlinkDB?

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

Is BlinkDB still maintained?

BlinkDB is discontinued. AMPLab research prototype (2012-2014); alpha releases only and no commits since February 2014.

How popular is BlinkDB?

BlinkDB ranks #582 of 844 databases on the WhichDB Score (1.0/100), and #182 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.