docs(outputs.postgresql): Add example to create index for tag columns (#15322)
This commit is contained in:
parent
a3b105e88e
commit
43c8db95d8
|
|
@ -274,6 +274,17 @@ tag_table_add_column_templates = [
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Index
|
||||||
|
|
||||||
|
Create an index on time and tag columns for faster querying of data.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
create_templates = [
|
||||||
|
'''CREATE TABLE {{ .table }} ({{ .columns }})''',
|
||||||
|
'''CREATE INDEX ON {{ .table }} USING btree({{ .columns.Keys.Identifiers | join "," }})'''
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
## Error handling
|
## Error handling
|
||||||
|
|
||||||
When the plugin encounters an error writing to the database, it attempts to
|
When the plugin encounters an error writing to the database, it attempts to
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue