Add timescale creation example.
This commit is contained in:
parent
b1b5667c6f
commit
2e19a79772
1 changed files with 6 additions and 1 deletions
|
|
@ -44,7 +44,12 @@ including JSON functional indexing, etc. See PostgreSQL documentation
|
||||||
for details.
|
for details.
|
||||||
|
|
||||||
Strongly encouraged: Promote this table to a Timescale "hypertable".
|
Strongly encouraged: Promote this table to a Timescale "hypertable".
|
||||||
See Timescale docs for that.
|
See Timescale docs for that, but a quick example to partition
|
||||||
|
automatically at weekly boundaries would look something like:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT create_hypertable( 'netdata', 'time', chunk_time_interval => 604800000000 );
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue