Web Traffic Dataset
Overview
In this guide, you’ll learn how to use the Oxla database with Web Traffic datasets through various sample queries. These datasets contain essential traffic information, including user activity, device, and browser information.
Data Source: https://github.com/ClickHouse/ClickBench .
Ensure you’ve created the Data Storage with the appropriate demo dataset, the Cluster is running, and you’re connected to it using the PostgreSQL client. For more details, refer to the Quickstart - Oxla SaaS page.
Datasets Structure
Let’s explore the tables and their structures to understand better and fully utilize the Web Traffic dataset.
Sample Queries
Sample 1: Top 10 Pages by Hits
This query selects the top 10 pages based on the number of hits they received.
This result displays the top 10 pages along with the total number of hits each page received.
Sample 2: Find Most Active Regions
This query extracts the most active regions ordered by the total number of hits.
This helps to pinpoint regions where the highest volume of interactions or activities has occurred.
Sample 3: Hourly Activity Analysis
This query uses the DATE_TRUNC
function to aggregate user activity by hour.
The result displays the total hits aggregated by hour, which can help you determine the peak usage times.