Relational Databases vs. Time-Series Databases

Joel Brass

July 15, 2025 /

Background

After the first release of Oracle Database in 1979, the relational database management system (RDBMS) quickly became the go-to choice for software developers and systems architects around the world. By now, the maturity, standardization, and flexibility of major RDBMS solutions has solidified their place in the world of data — even with the rise of NoSQL databases like MongoDB, DB-Engines shows that seven of the top ten most popular database management systems are still relational as of July 2025.

At the same time, RRDtool, probably the first time-series database (TSDB), came out 20 years after Oracle in 1999, and adoption of TSDBs did not really pick up until around 2015 with the growth of the IoT. And although the trend toward specialized databases has continued and more advanced time-series databases have been released in recent years, when designing systems, many developers and architects tend to stick with what they know. In the database world, this often means traditional relational databases like Oracle, MySQL, and SQL Server. And when these products are used to store and query time-series data, they seem to work well — at first.

In fact, while initial testing and proof of concept are often done on small amounts of data to speed up the development process, real-world time-series datasets grow rapidly over time, especially when new sites or devices are added as the business grows. Despite the best efforts of DBAs, there comes a time when the performance of relational databases just can’t keep up with the scale of the data: queries slow to a crawl, and reports that were once generated in seconds aren’t ready till the end of the day. Businesses that built their time-series systems on relational databases are then presented with two unsavory choices: either spend huge amounts of money to upgrade hardware until performance is acceptable, or rearchitect the entire system around a purpose-built time-series database.

Comparison of Relational and Time-Series Databases

The following table provides a comparison of relational databases and time-series databases.

ItemRelational DatabasesTime-Series Databases
Primary Use CaseGeneral-purpose data storage across many domainsHigh-frequency, time-stamped data (e.g. metrics, logs)
Data StructureTables with flexible schemasOptimized for time-series format: timestamp + tags + values
Schema FlexibilityStructured schema; rigid columns and relationshipsOften fixed schema; tags + fields pattern; some support dynamic fields
Write PatternsModerate, transactional writesHigh ingestion rate, append-only writes
Read PatternsOptimized for joins, complex queriesOptimized for aggregations, rollups, downsampling
Storage OptimizationRow-based or columnar (depending on engine)Time-partitioned, compressed, and optimized for sequential writes
Query LanguageSQLSQL (TDengine, TimescaleDB) or custom (InfluxQL, PromQL)
Performance with Time-SeriesNot optimized for time-series workloadsPurpose-built for large-scale time-series performance
Retention PoliciesManual implementationBuilt-in retention and downsampling features
ExamplesMySQL, PostgreSQL, Oracle, Microsoft SQL ServerTDengine, InfluxDB, TimescaleDB, OpenTSDB

TDengine’s Solution

While TDengine is a purpose-built time-series database, it offers many advantages for developers more accustomed to relational databases.

  • Standard SQL interface
    • TDengine supports standard SQL, not a custom query language.
    • Developers and users accustomed to MySQL or PostgreSQL can write queries without needing to learn something new.
    • Common operations like SELECT, JOIN, GROUP BY, and WHERE work as expected.
  • Relational data model
    • TDengine uses tables and columns, not unfamiliar document or key-value models.
    • It introduces supertables (like templates) to manage many similar time-series sources, which feel like regular tables with added convenience.

For even more convenience, TDengine Enterprise offers zero-code data replication from four popular RDBMS solutions: MySQL, PostgreSQL, Oracle, and Microsoft SQL Server. Choose your system to learn more:

  • Joel Brass
    Joel Brass

    Joel Brass is a Solutions Architect at TDengine, bringing extensive experience in real-time data processing, time-series analytics, and full-stack development. With a 20 year background in software engineering and a deep focus on scalable applications and solutions, Joel has worked on a range of projects spanning joke databases, IoT, self-driving vehicles, and work management platforms. Prior to joining TDengine, Joel worked in Advisory Services for Enterprise customers of Atlassian and the Systems Engineering team at Waymo. He is currently based in the San Francisco Bay Area.