commit | 814fe9769e4e101ce021b837c6e616d70f2f13de | [log] [tgz] |
---|---|---|
author | Scott Ganyo <scott@ganyo.com> | Tue Feb 28 17:33:02 2017 -0800 |
committer | Scott Ganyo <scott@ganyo.com> | Tue Feb 28 17:33:02 2017 -0800 |
tree | 4fe47c278f6b35158cbfa1da957313fc9cc34905 | |
parent | 9e556aae9151082b1b75e342ebaf815377e68243 [diff] |
Add indexes
diff --git a/init.go b/init.go index 57213b1..107f5be 100644 --- a/init.go +++ b/init.go
@@ -155,6 +155,9 @@ status text, PRIMARY KEY (appcred_id, app_id, apiprdt_id,tenant_id) ); +CREATE INDEX developer_id ON developer (id); +CREATE INDEX api_product_id ON api_product (id); +CREATE INDEX app_id ON app (id); `) if err != nil { log.Panic("Unable to initialize DB", err)