Table management

A database schema defines how the tables and indexes in your database are organized. Using a schema that is appropriate for your workload can result in significant performance improvements. Conversely, using a poorly suited schema can result in significant performance degradation.

If you are working with semi-structured data, such as readings from IoT sensors that collect varying measurements, you might need a flexible schema. In this case, you can use PostgreSQL JSON and JSONB data types.

TimescaleDB supports all table objects supported within PostgreSQL, including data types, indexes, and triggers.

This section explains how to design your schema, how indexing and tablespaces work, and how to use PostreSQL constraint types. It also includes examples to help you create your own schema, and learn how to use JSON and JSONB for semi-structured data.

Found an issue on this page?

Report an issue!


Related Content