In this lesson, you will learn how to assess the trade-offs of using multi-model databases—engines that bolt time-series capabilities onto traditional relational or NoSQL architectures—versus purpose-built TSDBs.
The Multi-Model Trade-off
When you add time-series support to an existing engine (like a relational database with time-series extensions), you are essentially trading "specialized performance" for "architectural simplicity." Instead of maintaining a separate TSDB and a separate metadata store, you unify your stack. However, the evaluation hinges on how the engine handles the underlying storage geometry.
For example, a traditional relational engine typically stores data in row-oriented heaps. When you add time-series functionality, the engine must perform "partitioning" or "chunking" to keep time-series data physically ordered on disk.
Assessing Performance Under Pressure
When evaluating these systems, look closely at how they handle:
- Storage Overhead: Does the multi-model engine support specialized compression (like Delta-of-Delta or Gorilla) for time-series columns? Without these, your storage costs will balloon compared to a native TSDB.
- Query Interoperability: A primary advantage is joining your metrics against your relational metadata. If the engine handles these joins efficiently, you avoid the complexity of distributed joins across separate systems.
- Write Path Contention: Can the engine perform efficient
INSERToperations on time-series tables without locking rows in your primary application tables?
Consider this conceptual scenario in a multi-model SQL environment:
-- Using a hypertable or partition-aware engine
SELECT
m.sensor_name,
AVG(s.reading)
FROM sensor_readings s
JOIN device_metadata m ON s.device_id = m.id
WHERE s.time > NOW() - INTERVAL '1 hour'
GROUP BY m.sensor_name;
In a dedicated TSDB, this query might struggle if the metadata exists elsewhere. In a multi-model engine, this join happens in-process. You must evaluate if the query planner can optimize the time-series partition scan before performing the join with the metadata. If the engine performs a full table scan of the metrics before filtering by time, the "multi-model" benefit is negated by catastrophic performance degradation.
Key Takeaway: Evaluate multi-model TSDBs by verifying that the storage engine provides specialized compression and partition-aware query planning, ensuring that the convenience of a unified data model does not come at the cost of high-frequency ingestion performance.