Virtual Global Trading leverages QuestDB for efficient energy data management
Virtual Global Trading uses QuestDB to manage time-series data for energy production and consumption, enabling dynamic pricing and efficient energy distribution across smart meters, power plants, and grid infrastructure.
Efficient energy data management
Virtual Global Trading leverages QuestDB to receive data from a broad array of smart meters, power plants, sensors, and other devices that monitor energy grid usage. Data is time-bound for billing and tracking purposes, and a dedicated time-series database ensures clean, timely arrival of the information required for downstream analytics.

SQL, clean and simple
Virtual Global Trading uses powerful SQL queries to manage and aggregate
time-series data efficiently. Time-series extensions such as SAMPLE BY enhance
the precision of these queries, enabling better data handling and visualization.
Data from various sensors arrives in real time, then is processed and aggregated by time. This supports dynamic pricing calculations and real-time information for both customers and internal applications.
The following query illustrates how deduplication, aggregation, and calendar-aligned sampling work together:
- A subquery filters and deduplicates data by
measuredUTCandimportedUTCusingLATEST ON. - The outer query aggregates the filtered data, sums
value, and computes the minimum ofmeasuredUTCandimportedUTC. SAMPLE BYgroups the data into yearly intervals and aligns it to the calendar in the'Europe/Zurich'time zone.
SELECTdatapointName,meteringPointID,source,sourceID,interval,status,MIN(measuredUTC) AS measuredUTC,MIN(importedUTC) AS importedUTC,SUM(value) AS valueFROM(SELECTdatapointName,meteringPointID,value,source,sourceID,interval,status,measuredUTC,importedUTCFROM<DataTable>WHEREmeasuredUTC >= '2015-10-31T00:00:00.000000Z'AND measuredUTC < '2025-11-01T02:00:00.000000Z'AND meteringPointID = <SomeID>LATEST ON importedUTC PARTITION BY measuredUTC)SAMPLE BY 1yALIGN TO CALENDAR TIME ZONE 'Europe/Zurich';
QuestDB's superior query speed and efficiency for time-series data, the ability to efficiently align data to specific time zones, and simplification of data handling with out-of-the-box functionalities for time-series data were key factors.
Virtual Global Trading's efficient data management
Virtual Global Trading previously relied on MongoDB for time-series data. Limitations around time-based aggregations and updates prompted a move to QuestDB. With QuestDB, the team overcame ingestion and analytics bottlenecks and can now support predictive energy analytics at scale.
The ability to use InfluxDB Line for data ingestion and the helpfulness of the web console for SQL queries were also significant.