hologres-uv-compute

Compute real-time UV/PV with deduplicated user IDs using RoaringBitmap.

17|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/aliyun/hologres-ai-plugins --skill hologres-uv-compute
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hologres-uv-compute
Source: https://github.com/aliyun/hologres-ai-plugins/tree/main/agent-skills/skills/hologres-uv-compute
Command: npx skills add https://github.com/aliyun/hologres-ai-plugins --skill hologres-uv-compute

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Compute real-time UV/PV with deduplicated user IDs for scalable analytics.

Core Features & Use Cases

  • Real-time UV/PV computation using Dynamic Tables and RoaringBitmap for incremental deduplication across date ranges.
  • Cross-day UV aggregation via RB_OR_AGG for exact counts, flexible time-range analysis, and text UID encoding with hg_id_encoding_int4.
  • Use cases include event-level analytics, retention studies, and cross-region campaigns with low latency.

Quick Start

Create your source and dynamic tables, enable RoaringBitmap, and run a sample UV/PV query across a date range.

Frequently Asked Questions about hologres-uv-compute

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute real-time UV and PV with deduplication on billions of events?

To compute real-time UV and PV with deduplication, use Dynamic Tables with incremental refresh and the RoaringBitmap extension. This approach supports incremental pipelines on billions of events for scalable analytics.

How does RoaringBitmap handle cross-day UV aggregation?

RoaringBitmap handles cross-day UV aggregation using the RB_OR_AGG function. This enables exact deduplicated user counts and flexible time-range analysis across multiple days with low latency.

Do I need a specific UID-mapping strategy for text user IDs in real-time UV computation?

Yes, real-time UV computation requires a robust UID-mapping strategy when using text user IDs. You can encode text UIDs into integers using the hg_id_encoding_int4 function for RoaringBitmap processing.

What's the best way to set up incremental deduplication for event-level analytics?

The best way to set up incremental deduplication for event-level analytics is creating source and dynamic tables, enabling the RoaringBitmap extension, and running incremental refreshes. This supports retention studies and cross-region campaigns.

Does Hologres support exact UV counts without scanning raw event logs every time?

Hologres supports exact UV counts without repeated raw log scanning by leveraging Dynamic Tables and RoaringBitmap. This architecture maintains deduplicated user IDs incrementally for scalable, low-latency queries.