time column as timestamptz and not timestamp. For more
information, see timestamp best practices.
This section explains how to design your schema, how indexing and tablespaces work, and how to use 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.
In this section:
- Accelerate queries using indexes: learn how indexing works in , including default indexes on s, composite indexes, and best practices for query optimization
- Manage tablespaces: use tablespaces to control where stores data on disk and move older chunks to different storage tiers
- Ensure data integrity with constraints: implement constraints including
CHECK,FOREIGN KEY,PRIMARY KEY, andUNIQUEto maintain data quality - Automate tasks with triggers: use triggers to automatically execute functions when data changes occur, including data validation, audit logging, and notifications
- Handle semi-structured data with JSON: work with flexible, semi-structured data using JSON and JSONB data types for IoT sensor readings, logs, and varying structures
- Query external data sources with FDW: query other Tiger Cloud services or external databases using foreign data wrappers
- Alter and update table schemas: modify existing schemas using
ALTER TABLEand handle schema changes on s with columnstore enabled