New CrateDB stable release: CrateDB 6.5

We are happy to announce a new CrateDB 6.5 stable release.

If you run analytics on large datasets, you’ll notice the difference right away: aggregations and GROUP BY queries are faster, dashboards load quicker, and the same cluster handles more queries.

Highlights of this release:

  • count(DISTINCT) on string columns is up to 21x faster. One benchmark query dropped from about 8.3 seconds to under 0.4 seconds.
  • GROUP BY on string columns with doc values is more than 2x faster.
  • Keys-only GROUP BY on high-cardinality text columns takes 41% less time, so dashboard drop-downs and filters fill faster.
  • A smarter query planner. It collects statistics for foreign tables, simplifies redundant conditions generated by BI tools and ORMs, and caches view definitions.
  • Better PostgreSQL compatibility. DataGrip, Pgpool-II, and lazysql now work out of the box, and you can carry over more of your PostgreSQL schemas unchanged.
  • Simpler JWT setup with OpenID Connect Discovery.
  • SWAP TABLE and RENAME TABLE no longer break in-progress snapshots, and concurrent operations are protected.

You can see the complete list of changes in the release notes, and more high-level details in the related 6.5 release blog post. Please check the breaking changes in the release notes before upgrading.

You can download CrateDB 6.5 from our download page or deploy a cluster in the CrateDB Cloud Console.

Thank you to everyone who contributed!

That 21x speedup on COUNT(DISTINCT string_col) in 6.5 is huge for web/event analytics tables.

On our event-stream dashboards (where almost every top-level KPI card runs COUNT(DISTINCT session_id) or COUNT(DISTINCT anonymous_user_id) alongside GROUP BY utm_source, country), exact distinct counts on high-cardinality TEXT/VARCHAR columns used to be the main query bottleneck unless we swapped them out for approximate HyperLogLog sketches. Looking forward to testing 6.5 on our staging log cluster this week.

Let us know how it goes. Curious to see your results.