CrateDB
activeby Crate.io · since 2014 · also known as Crate
Distributed SQL database built on Lucene for real-time analytics over machine, IoT and JSON data.
Overview
CrateDB is a distributed SQL engine that reuses Lucene and Elasticsearch-derived clustering, so every column is indexed by default and tables shard and replicate automatically. It speaks the PostgreSQL wire protocol, handles nested objects and arrays natively, and adds full-text, geospatial and vector search, which suits industrial IoT, fleet telemetry and log-like data that needs ad-hoc aggregation. Crate.io sells CrateDB Cloud and enterprise support, while the database itself is Apache-2.0. It is not a transactional database: there are no multi-statement transactions, and new writes become visible to queries after a refresh interval.
Strengths & trade-offs
Strengths
- +Standard SQL over nested JSON with every column indexed automatically
- +Full-text, geospatial and vector search in the same SQL query
- +Shards and rebalances automatically as nodes are added
- +PostgreSQL wire protocol works with common drivers and BI tools
- +Apache-2.0 licence for the full database
Trade-offs
- −No multi-statement transactions; writes are visible after refresh
- −JVM heap and Lucene segment tuning needed at scale
- −Postgres compatibility is partial: many Postgres functions and extensions are missing
- −Smaller community than Elasticsearch or ClickHouse
Great for
- +Industrial IoT and machine data analytics
- +Fleet and vehicle telemetry
- +Log and event analytics with SQL
- +Hybrid search over JSON documents
- +Real-time dashboards on high-ingest data
Think twice for
- −OLTP needing transactions
- −Strict read-after-write workflows
- −Small single-node apps
Capabilities
Native or official first-party support · 11 of 25 tracked
Scale & consistency
- Comfortable data size
- Large · ≤ 1 PB
- Horizontal scaling
- Native
- Multi-region
- Read replicas
- Transactions
- Limited ACID
- Consistency
- Eventual
- Schema
- Flexible
- Architecture
- Distributed, Client server
- Query languages
- SQL
Automatic sharding and replication; logical replication can copy tables to clusters in other regions.
Deployment
available on · AWS · Azure · Google Cloud
Ecosystem
Alternatives to CrateDB
Lucene-based distributed search and analytics engine for text, vectors, logs and metrics.
cratedb vs elasticsearch →Open-source columnar OLAP database known for very fast aggregations over billions of rows.
cratedb vs clickhouse →PostgreSQL extension adding hypertables, columnar compression and continuous aggregates for time series.
cratedb vs timescaledb →Columnar time-series SQL database built for market data and very high ingest rates.
cratedb vs questdb →Real-time analytics database for sub-second slice-and-dice over streaming event data.
cratedb vs apache-druid →Apache-licensed, foundation-governed fork of Elasticsearch for search, vectors and observability.
cratedb vs opensearch →CrateDB FAQ
What is CrateDB?
CrateDB is a relational database by Crate.io, first released in 2014. CrateDB is a distributed SQL engine that reuses Lucene and Elasticsearch-derived clustering, so every column is indexed by default and tables shard and replicate automatically. It speaks the PostgreSQL wire protocol, handles nested objects and arrays natively, and adds full-text, geospatial and vector search, which suits industrial IoT, fleet telemetry and log-like data that needs ad-hoc aggregation. Crate.io sells CrateDB Cloud and enterprise support, while the database itself is Apache-2.0. It is not a transactional database: there are no multi-statement transactions, and new writes become visible to queries after a refresh interval.
Is CrateDB open source?
Yes. CrateDB is open source. License: Apache License 2.0.
Does CrateDB support ACID transactions?
Partly. CrateDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual consistency.
Does CrateDB scale horizontally?
CrateDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB). It supports cross-region read replicas.
How can I run CrateDB?
You can self-host it and use the vendor's managed cloud. Managed offerings include CrateDB Cloud. It is available on AWS, Azure and Google Cloud.
What is CrateDB best for?
CrateDB is a strong fit for industrial IoT and machine data analytics; fleet and vehicle telemetry; and log and event analytics with SQL. Think twice for OLTP needing transactions.
What are the best alternatives to CrateDB?
Common alternatives to CrateDB include Elasticsearch, ClickHouse, TimescaleDB, QuestDB and Apache Druid. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is CrateDB?
CrateDB ranks #104 of 844 databases on the WhichDB Score (27.3/100), and #33 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.
