Cubrick

discontinued

by Facebook (Meta Platforms) · since 2016

Facebook's internal distributed in-memory OLAP engine that range-partitions cubes by every dimension.

columnar / olapresearch prototypeproprietarylegacy

discontinued. Internal Facebook system described in VLDB 2016; never released publicly, and its current use at Meta is not documented.

Overview

Cubrick is a distributed, multidimensional in-memory DBMS that Facebook built for interactive analytics over highly dynamic datasets, described by Pedro Pedreira, Chris Croswhite and Luis Bona in VLDB 2016. Its data model is strictly cubes, dimensions and metrics. Every table is range-partitioned along all of its dimensions at once into small containers called bricks, and rows are stored unordered and sparse inside each brick, so ingestion stays fast while any combination of dimension filters still prunes to a few bricks, giving sub-second slice, dice, roll-up and drill-down over terabytes. Strings are dictionary-encoded and in-memory data is flushed asynchronously to an external key-value store for durability. It was built only for internal use and never released outside Facebook.

Strengths & trade-offs

Strengths

  • +Granular range partitioning on every dimension gives indexed access through any filter combination
  • +Unordered, sparse bricks keep ingestion rates high on constantly changing data
  • +Sub-second slice-and-dice over terabytes held in memory

Trade-offs

  • −Never released outside Facebook
  • −Strict cube model: no general SQL, joins or transactions

Great for

  • +Studying partitioning schemes for interactive OLAP
  • +Reference design for in-memory multidimensional analytics

Think twice for

  • −Anyone outside Meta: there is no public implementation

Capabilities

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

✓In-memory
✓Durable persistence
✓Compression
✓Streaming ingest
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–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, In memory
Query languages
Custom OLAP query API

Paper reports sub-second OLAP over terabytes of in-memory data spread across a cluster.

Deployment

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

Alternatives to Cubrick

Compare all→
Apache DruidColumnar / OLAP35.0

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

cubrick vs apache-druid →
Apache PinotColumnar / OLAP29.9

Real-time OLAP store from LinkedIn for user-facing analytics at very high query rates.

cubrick vs apache-pinot →
ClickHouseColumnar / OLAP69.8

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

cubrick vs clickhouse →
Apache KylinColumnar / OLAP16.9

OLAP engine that pre-computes cubes and aggregate indexes for sub-second SQL on huge datasets.

cubrick vs apache-kylin →
InMemory.NetColumnar / OLAP0.2

Commercial in-memory columnar SQL engine for .NET that speeds up reporting over hundreds of millions of rows.

cubrick vs inmemory-net →
Apache KuduColumnar / OLAP18.6

Columnar storage engine for fast analytics on fast-changing data, paired with Impala or Spark.

cubrick vs apache-kudu →

Cubrick FAQ

What is Cubrick?

Cubrick is a columnar / OLAP database by Facebook (Meta Platforms), first released in 2016. Cubrick is a distributed, multidimensional in-memory DBMS that Facebook built for interactive analytics over highly dynamic datasets, described by Pedro Pedreira, Chris Croswhite and Luis Bona in VLDB 2016. Its data model is strictly cubes, dimensions and metrics. Every table is range-partitioned along all of its dimensions at once into small containers called bricks, and rows are stored unordered and sparse inside each brick, so ingestion stays fast while any combination of dimension filters still prunes to a few bricks, giving sub-second slice, dice, roll-up and drill-down over terabytes. Strings are dictionary-encoded and in-memory data is flushed asynchronously to an external key-value store for durability. It was built only for internal use and never released outside Facebook.

Is Cubrick open source?

No. Cubrick is proprietary, closed-source software. License: Internal, never released.

Does Cubrick support ACID transactions?

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

Does Cubrick scale horizontally?

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

What is Cubrick best for?

Cubrick is a strong fit for studying partitioning schemes for interactive OLAP and reference design for in-memory multidimensional analytics. Think twice for anyone outside Meta: there is no public implementation.

What are the best alternatives to Cubrick?

Common alternatives to Cubrick include Apache Druid, Apache Pinot, ClickHouse, Apache Kylin and InMemory.Net. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Cubrick still maintained?

Cubrick is discontinued. Internal Facebook system described in VLDB 2016; never released publicly, and its current use at Meta is not documented.

How popular is Cubrick?

Cubrick has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.