Skip to content

Commit 4dc2033

Browse files
jstirnamandomodwyer
andcommitted
fix(v3): apply correction, remove duplicate content, add links
- restore column limit defaults to 250 - remove duplicate content from schema-design Co-authored-by: domodwyer <[email protected]>
1 parent 10b2b1e commit 4dc2033

File tree

11 files changed

+55
-103
lines changed

11 files changed

+55
-103
lines changed

content/influxdb/cloud-dedicated/admin/databases/_index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ cluster in the following ways:
7171
{{% expand "**May improve query performance** <em style='opacity:.5;font-weight:normal;'>View more info</em>" %}}
7272

7373
Schemas with many measurements that contain
74-
[focused sets of tags and fields](/influxdb/cloud-dedicated/write-data/best-practices/schema-design/#design-for-performance) can make it easier for the query engine to
74+
[focused sets of tags and fields](/influxdb/cloud-dedicated/write-data/best-practices/schema-design/#design-for-performance)
75+
can make it easier for the query engine to
7576
identify what partitions contain the queried data, resulting in better
7677
query performance.
7778

@@ -100,33 +101,32 @@ operating cost of your cluster.
100101

101102
### Column limit
102103

103-
**Default maximum number of columns**: 1000
104+
**Default maximum number of columns**: 250
104105

105-
A table can contain **up to 1000 columns**.
106106
Each row must include a time column, with the remaining columns representing
107107
tags and fields.
108-
As a result, a table can have one time column and up to 999 field and tag columns.
108+
As a result, a table can have one time column and up to 249 field and tag columns.
109+
110+
If you attempt to write to a table and exceed the column limit, the write
111+
request fails and InfluxDB returns an error.
109112

110113
When creating or updating a database, you can configure the table column limit to be
111-
lower than 1000, based on your requirements.
114+
lower than the default or up to 1000, based on your requirements.
112115
After you update the column limit for a database, the limit applies to newly
113116
created tables; it doesn't override the column limit for existing tables.
114117

115-
If you attempt to write to a table and exceed the column limit, the write
116-
request fails and InfluxDB returns an error.
117-
118118
Increasing your column limit affects your {{% product-name omit=" Clustered" %}}
119119
cluster in the following ways:
120120

121121
{{< expand-wrapper >}}
122122
{{% expand "May adversely affect system performance" %}}
123123

124-
InfluxData identified 1000 columns as the safe limit for maintaining system
124+
InfluxData identified 250 columns as the safe limit for maintaining system
125125
performance and stability.
126126
Exceeding this threshold can result in
127127
[wide schemas](/influxdb/cloud-dedicated/write-data/best-practices/schema-design/#avoid-wide-schemas),
128128
which can negatively impact performance and resource use,
129-
depending on the shape of your schema and data types in the schema.
129+
depending on your queries, the shape of your schema, and data types in the schema.
130130

131131
{{% /expand %}}
132132
{{< /expand-wrapper >}}

content/influxdb/cloud-dedicated/reference/cli/influxctl/database/create.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ influxctl database create [flags] <DATABASE_NAME>
102102

103103
| Flag | | Description |
104104
| :--- | :---------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
105-
| | `--retention-period` | Database retention period (default is `0s`, infinite) |
106-
| | `--max-tables` | Maximum tables per database (default is 500, `0` uses default) |
107-
| | `--max-columns` | Maximum columns per table (default is 1000, `0` uses default) |
105+
| | `--retention-period` | [Database retention period ](/influxdb/cloud-dedicated/admin/databases/#retention-periods)(default is `0s`, infinite) |
106+
| | `--max-tables` | [Maximum tables per database](/influxdb/cloud-dedicated/admin/databases/#table-limit) (default is 500, `0` uses default) |
107+
| | `--max-columns` | [Maximum columns per table](/influxdb/cloud-dedicated/admin/databases/#column-limit) (default is 250, `0` uses default) |
108108
| | `--template-tag` | Tag to add to partition template (can include multiple of this flag) |
109109
| | `--template-tag-bucket` | Tag and number of buckets to partition tag values into separated by a comma--for example: `tag1,100` (can include multiple of this flag) |
110110
| | `--template-timeformat` | Timestamp format for partition template (default is `%Y-%m-%d`) |

content/influxdb/cloud-dedicated/reference/cli/influxctl/database/update.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ table (measurement), or column limits in InfluxDB.
1414

1515
## Usage
1616

17+
<!-- pytest.mark.skip -->
18+
1719
```sh
1820
influxctl database update [flags] <DATABASE_NAME>
1921
```
@@ -28,9 +30,9 @@ influxctl database update [flags] <DATABASE_NAME>
2830

2931
| Flag | | Description |
3032
| :--- | :------------------- | :----------------------------------------------------------- |
31-
| | `--retention-period` | Database retention period (default is 0s or infinite) |
32-
| | `--max-tables` | Maximum tables per database (default is 500, 0 uses default) |
33-
| | `--max-columns` | Maximum columns per table (default is 250, 0 uses default) |
33+
| | `--retention-period` | [Database retention period ](/influxdb/cloud-dedicated/admin/databases/#retention-periods)(default is `0s` or infinite) |
34+
| | `--max-tables` | [Maximum tables per database](/influxdb/cloud-dedicated/admin/databases/#table-limit) (default is 500, 0 uses default) |
35+
| | `--max-columns` | [Maximum columns per table](/influxdb/cloud-dedicated/admin/databases/#column-limit) (default is 250, 0 uses default) |
3436
| `-h` | `--help` | Output command help |
3537

3638
{{% caption %}}

content/influxdb/cloud-dedicated/write-data/best-practices/schema-design.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ As a result, a table can have the following:
134134
If you attempt to write to a table and exceed the column limit, then the write
135135
request fails and InfluxDB returns an error.
136136

137-
InfluxData identified 1000 columns as the safe limit for maintaining system
137+
InfluxData identified the default maximum as the safe limit for maintaining system
138138
performance and stability.
139139
Exceeding this threshold can result in
140140
[wide schemas](#avoid-wide-schemas), which can negatively impact performance
141-
and resource use, depending on the shape and data types in your schema.
141+
and resource use, [depending on your queries](#avoid-non-specific-queries),
142+
the shape of your schema, and data types in the schema.
142143

143144
---
144145

@@ -162,32 +163,13 @@ Wide schemas can lead to the following issues:
162163

163164
- Increased resource usage for persisting and compacting data during ingestion.
164165
- Reduced sorting performance due to complex primary keys with [too many tags](#avoid-too-many-tags).
165-
- Reduced query performance when [using non-specific queries](#avoid-non-specific-queries).
166+
- Reduced query performance when
167+
[selecting too many columns](/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/optimize-queries/#select-only-columns-you-need).
166168

167169
To prevent wide schema issues, limit the number of tags and fields stored in a table.
168170
If you need to store more than the [maximum number of columns](/influxdb/cloud-dedicated/admin/databases/),
169171
consider segmenting your fields into separate tables.
170172

171-
#### Avoid non-specific queries
172-
173-
Because InfluxDB v3 is a columnar database, it only processes the columns
174-
selected in a query, which can mitigate the query performance impact of wide schemas.
175-
If you [query only the data that you need](/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/optimize-queries/#strategies-for-improving-query-performance),
176-
then a wide schema might not impact query performance.
177-
178-
However, a non-specific query that retrieves a large number of columns from a
179-
wide schema
180-
is slower and less efficient than a more targeted query--for example, consider
181-
the following queries:
182-
183-
- `SELECT time,a,b,c`
184-
- `SELECT *`
185-
186-
If the table contains 10 columns, the difference in performance between the
187-
two queries is minimal.
188-
In a table with over 1000 columns, the `SELECT *` query is slower and
189-
less efficient.
190-
191173
#### Avoid too many tags
192174

193175
In InfluxDB, the primary key for a row is the combination of the point's

content/influxdb/cloud-serverless/admin/buckets/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Each measurement is represented by a table.
5959
Time, fields, and tags are each represented by a column.
6060

6161
**Maximum number of tables**: 500
62+
6263
**Maximum number of columns**: 200
6364

6465
The following articles provide information about managing buckets:

content/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/optimize-queries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Learn how to use observability tools to analyze query execution and view metrics
2222

2323
- [Why is my query slow?](#why-is-my-query-slow)
2424
- [Strategies for improving query performance](#strategies-for-improving-query-performance)
25+
- [Query only the data you need](#query-only-the-data-you-need)
2526
- [Analyze and troubleshoot queries](#analyze-and-troubleshoot-queries)
2627

2728
## Why is my query slow?

content/influxdb/cloud-serverless/write-data/best-practices/schema-design.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,32 +135,13 @@ Wide schemas can lead to the following issues:
135135

136136
- Increased resource usage for persisting and compacting data during ingestion.
137137
- Reduced sorting performance due to complex primary keys with [too many tags](#avoid-too-many-tags).
138-
- Reduced query performance when [using non-specific queries](#avoid-non-specific-queries).
138+
- Reduced query performance when
139+
[selecting too many columns](/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/optimize-queries/#select-only-columns-you-need).
139140

140141
To prevent wide schema issues, limit the number of tags and fields stored in a measurement.
141142
If you need to store more than the [maximum number of columns](/influxdb/cloud-serverless/admin/buckets/),
142143
consider segmenting your fields into separate measurements.
143144

144-
#### Avoid non-specific queries
145-
146-
Because InfluxDB v3 is a columnar database, it only processes the columns
147-
selected in a query, which can mitigate the query performance impact of wide schemas.
148-
If you [query only the data that you need](/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/optimize-queries/#strategies-for-improving-query-performance),
149-
then a wide schema might not impact query performance.
150-
151-
However, a non-specific query that retrieves a large number of columns from a
152-
wide schema
153-
is slower and less efficient than a more targeted query--for example, consider
154-
the following queries:
155-
156-
- `SELECT time,a,b,c`
157-
- `SELECT *`
158-
159-
If the measurement contains 10 columns, the difference in performance between the
160-
two queries is minimal.
161-
In a measurement with over 1000 columns, the `SELECT *` query is slower and
162-
less efficient.
163-
164145
#### Avoid too many tags
165146

166147
In InfluxDB, the primary key for a row is the combination of the point's timestamp and _tag set_ - the collection of [tag keys](/influxdb/cloud-serverless/reference/glossary/#tag-key) and [tag values](/influxdb/cloud-serverless/reference/glossary/#tag-value) on the point.

content/influxdb/clustered/admin/databases/_index.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Each InfluxDB database has a [retention period](#retention-periods).
2727
{{% note %}}
2828
**If coming from InfluxDB v1**, the concepts of databases and retention policies
2929
have been combined into a single concept--database. Retention policies are no
30-
longer part of the InfluxDB data model. However, {{% product-name %}} does
30+
longer part of the InfluxDB data model.
31+
However, {{% product-name %}} does
3132
support InfluxQL, which requires databases and retention policies.
3233
See [InfluxQL DBRP naming convention](/influxdb/clustered/admin/databases/create/#influxql-dbrp-naming-convention).
3334

@@ -70,7 +71,8 @@ cluster in the following ways:
7071
{{% expand "**May improve query performance** <em style='opacity:.5;font-weight:normal;'>View more info</em>" %}}
7172

7273
Schemas with many measurements that contain
73-
[focused sets of tags and fields](/influxdb/clustered/write-data/best-practices/schema-design/#design-for-performance) can make it easier for the query engine to
74+
[focused sets of tags and fields](/influxdb/clustered/write-data/best-practices/schema-design/#design-for-performance)
75+
can make it easier for the query engine to
7476
identify what partitions contain the queried data, resulting in better
7577
query performance.
7678

@@ -82,7 +84,7 @@ data by measurement and time range and stores each partition as a Parquet
8284
file in your cluster's object store. By increasing the number of measurements
8385
(tables) you can store in your database, you also increase the potential for
8486
more `PUT` requests into your object store as InfluxDB creates more partitions.
85-
Each `PUT` request incurs a monetary cost and will increase the operating cost of
87+
Each `PUT` request incurs a monetary cost and increases the operating cost of
8688
your cluster.
8789

8890
{{% /expand %}}
@@ -99,33 +101,32 @@ operating cost of your cluster.
99101

100102
### Column limit
101103

102-
**Default maximum number of columns**: 1000
104+
**Default maximum number of columns**: 250
103105

104-
A table can contain **up to 1000 columns**.
105106
Each row must include a time column, with the remaining columns representing
106107
tags and fields.
107-
As a result, a table can have one time column and up to 999 field and tag columns.
108-
109-
When creating or updating a database, you can configure the column limit to be
110-
lower than 1000, based on your requirements.
111-
After you update the column limit for a database, the limit applies to newly
112-
created tables; doesn't override the column limit for existing tables.
108+
As a result, a table can have one time column and up to 249 field and tag columns.
113109

114110
If you attempt to write to a table and exceed the column limit, the write
115111
request fails and InfluxDB returns an error.
116112

113+
When creating or updating a database, you can configure the table column limit to be
114+
lower than the default or up to 1000, based on your requirements.
115+
After you update the column limit for a database, the limit applies to newly
116+
created tables; it doesn't override the column limit for existing tables.
117+
117118
Increasing your column limit affects your {{% product-name omit=" Clustered" %}}
118119
cluster in the following ways:
119120

120121
{{< expand-wrapper >}}
121122
{{% expand "May adversely affect system performance" %}}
122123

123-
InfluxData identified 1000 columns as the safe limit for maintaining system
124+
InfluxData identified 250 columns as the safe limit for maintaining system
124125
performance and stability.
125126
Exceeding this threshold can result in
126-
[wide schemas](/influxdb/cloud-dedicated/write-data/best-practices/schema-design/#avoid-wide-schemas),
127+
[wide schemas](/influxdb/clustered/write-data/best-practices/schema-design/#avoid-wide-schemas),
127128
which can negatively impact performance and resource use,
128-
depending on the shape of your schema and data types in the schema.
129+
depending on your queries, the shape of your schema, and data types in the schema.
129130

130131
{{% /expand %}}
131132
{{< /expand-wrapper >}}

content/influxdb/clustered/reference/cli/influxctl/database/create.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ influxctl database create [flags] <DATABASE_NAME>
101101

102102
| Flag | | Description |
103103
| :--- | :---------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
104-
| | `--retention-period` | Database retention period (default is `0s`, infinite) |
105-
| | `--max-tables` | Maximum tables per database (default is 500, `0` uses default) |
106-
| | `--max-columns` | Maximum columns per table (default is 1000, `0` uses default) |
104+
| | `--retention-period` | [Database retention period ](/influxdb/clustered/admin/databases/#retention-periods)(default is `0s`, infinite) |
105+
| | `--max-tables` | [Maximum tables per database](/influxdb/clustered/admin/databases/#table-limit) (default is 500, `0` uses default) |
106+
| | `--max-columns` | [Maximum columns per table](/influxdb/clustered/admin/databases/#column-limit) (default is 250, `0` uses default) |
107107
| | `--template-tag` | Tag to add to partition template (can include multiple of this flag) |
108108
| | `--template-tag-bucket` | Tag and number of buckets to partition tag values into separated by a comma--for example: `tag1,100` (can include multiple of this flag) |
109109
| | `--template-timeformat` | Timestamp format for partition template (default is `%Y-%m-%d`) |

content/influxdb/clustered/reference/cli/influxctl/database/update.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ table (measurement), or column limits in InfluxDB.
1414

1515
## Usage
1616

17+
<!-- pytest.mark.skip -->
18+
1719
```sh
1820
influxctl database update [flags] <DATABASE_NAME>
1921
```
@@ -28,9 +30,9 @@ influxctl database update [flags] <DATABASE_NAME>
2830

2931
| Flag | | Description |
3032
| :--- | :------------------- | :----------------------------------------------------------- |
31-
| | `--retention-period` | Database retention period (default is 0s or infinite) |
32-
| | `--max-tables` | Maximum tables per database (default is 500, 0 uses default) |
33-
| | `--max-columns` | Maximum columns per table (default is 250, 0 uses default) |
33+
| | `--retention-period` | [Database retention period ](/influxdb/clustered/admin/databases/#retention-periods)(default is `0s` or infinite) |
34+
| | `--max-tables` | [Maximum tables per database](/influxdb/clustered/admin/databases/#table-limit) (default is 500, `0` uses default) |
35+
| | `--max-columns` | [Maximum columns per table](/influxdb/clustered/admin/databases/#column-limit) (default is 250, `0` uses default) |
3436
| `-h` | `--help` | Output command help |
3537

3638
{{% caption %}}

0 commit comments

Comments
 (0)