added index on pn
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 6 Oct 2020 10:17:41 +0000 (12:17 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 6 Oct 2020 10:17:41 +0000 (12:17 +0200)
create.sql

index dcc48a6..593cfcc 100644 (file)
@@ -1,4 +1,4 @@
-drop table zc;
+--drop table zc;
 create table zc (
        time timestamp with time zone default now(),
        PN integer not null,
@@ -13,5 +13,7 @@ create table zc (
        _id serial
 );
 
+create index zc_pn on zc(pn) ;
+
 create user grafana password 'readonly' ;
 grant select on zc to  grafana ;