After reading this article, you now have the knowledge of using RisingWave to cater to your data dashboard needs. We first synchronize order data from upstream into RisingWave through CDC, then calculate the payment amount and number of buyers indicators for minute, hour, and day-level order tables through hierarchical materialized views. Next, we construct the appropriate time range based on the user’s selected time range and query the materialized views. We recommend that when designing materialized views to accelerate queries, one should combine the business’s query characteristics to materialize the computationally reusable results as much as possible. Finally, we use Grafana to visualize the data within RisingWave to compare trends.