Documentation

Design your schema

Schema design can have a significant impact on both write and query performance in your InfluxDB cluster. The items below cover high-level considerations and recommendation. For detailed recommendations, see Schema design recommendations.

Understand the difference between tags and fields

In the InfluxDB data structure, there are three main “categories” of information–timestamps, tags, and fields. Understanding the difference between what should be a tag and what should be a field is important when designing your schema.

Use the following guidelines to determine what should be tags versus fields:

  • Use tags to store metadata that provides information about the source or context of the data.
  • Use fields to store measured values.
  • Field values typically change over time. Tag values do not.
  • Tag values can only be strings.
  • Field values can be any of the following data types:
    • Integer
    • Unsigned integer
    • Float
    • String
    • Boolean

For more information, see Tags versus fields.

Schema restrictions

InfluxDB enforces the following schema restrictions:

  • You cannot use the same name for a tag and a field in the same table.
  • By default, a table can have up to 250 columns.

For more information, see InfluxDB schema restrictions.

Design for performance

The following guidelines help to ensure write and query performance:

Follow the links below for more detailed information.

Design for query simplicity

The following guidelines help to ensure that, when querying data, the schema makes it easy to write queries:

Follow the links below for more detailed information.


Was this page helpful?

Thank you for your feedback!


InfluxDB 3.9: Performance upgrade preview

InfluxDB 3 Enterprise 3.9 includes a beta of major performance upgrades with faster single-series queries, wide-and-sparse table support, and more.

InfluxDB 3 Enterprise 3.9 includes a beta of major performance and feature updates.

Key improvements:

  • Faster single-series queries
  • Consistent resource usage
  • Wide-and-sparse table support
  • Automatic distinct value caches for reduced latency with metadata queries

Preview features are subject to breaking changes.

For more information, see:

Telegraf Enterprise now in public beta

Get early access to the Telegraf Controller and provide feedback to help shape the future of Telegraf Enterprise.

See the Blog Post

The upcoming Telegraf Enterprise offering is for organizations running Telegraf at scale and is comprised of two key components:

  • Telegraf Controller: A control plane (UI + API) that centralizes Telegraf configuration management and agent health visibility.
  • Telegraf Enterprise Support: Official support for Telegraf Controller and Telegraf plugins.

Join the Telegraf Enterprise beta to get early access to the Telegraf Controller and provide feedback to help shape the future of Telegraf Enterprise.

For more information:

Telegraf Controller v0.0.6-beta now available

Telegraf Controller v0.0.6-beta is now available with new features, improvements, and bug fixes.

View the release notes
Download Telegraf Controller v0.0.6-beta

InfluxDB Docker latest tag changing to InfluxDB 3 Core

On May 27, 2026, the latest tag for InfluxDB Docker images will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments.

If using Docker to install and run InfluxDB, the latest tag will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments. For example, if using Docker to run InfluxDB v2, replace the latest version tag with a specific version tag in your Docker pull command–for example:

docker pull influxdb:2