Redis: Set Operations Enhancement with New Cardinality Command

Redis merged a new SUNIONCARD command that calculates set union sizes without materializing results, offering both exact and approximate modes with HyperLogLog optimization. A separate effort introduces compressed bitmap support through roaring bitmaps integration.

Duration: PT2M5S

Episode overview

This episode is a short developer briefing from Redis.

It explains recent repository work in plain language.

  • Show: Redis
  • Published: 2026-06-12T13:12:23Z
  • Audio duration: PT2M5S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning, this is your Redis development briefing for June 12th, 2026.

The major development this cycle centers on expanding Redis's set operation capabilities with performance-focused alternatives to existing commands.

The headline change is the introduction of SUNIONCARD in pull request 14893, which provides a more efficient way to count distinct elements across multiple sets. Rather than building the full union and then counting elements, this command can return just the cardinality directly. The implementation offers two modes:…

This follows the same pattern established by SINTERCARD, extending Redis's toolkit for analytics workloads where you need set statistics without the overhead of materializing large result sets. The performance implications are significant for applications doing set analysis on large datasets.

In parallel development, pull request 15331 introduces compressed bitmap support through roaring bitmaps integration, though this remains in draft status with change requests pending. This represents a broader effort to optimize Redis's memory efficiency for bitmap operations.

What this means for developers: SUNIONCARD gives you a new tool for set analytics that…

Nearby episodes from Redis

  1. Command Metadata and Cluster Tooling Enhancement
  2. Weekly Recap - Performance Optimization & Data Integrity
  3. List Data Structure and Build Fixes
  4. Event Queue Performance Optimization
  5. Performance and Threading Fixes
  6. Security Hardening and Performance Tuning
  7. Cluster Operations and Bulk Reply Performance
  8. Weekly Recap - Security Hardening & Stability Fixes