From 2e19a7977296c3f92ec44f980482fb8c55840eb0 Mon Sep 17 00:00:00 2001 From: "Mahlon E. Smith" Date: Mon, 12 Feb 2018 13:00:25 -0800 Subject: [PATCH] Add timescale creation example. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0c4d01..1295b76 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,12 @@ including JSON functional indexing, etc. See PostgreSQL documentation for details. 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 ); +```