summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-10-27 06:02:16 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-10-27 09:02:16 -0400
commit91b9514aafbefd5c9c10380878bef1b03245d10c (patch)
treec6e951101d304c1dfac6d29e50a2a2fe693cf7a1 /store/sqlstore/store.go
parent1e2506b2dfda87e65aa2f75f1e507046145cd2b8 (diff)
downloadchat-91b9514aafbefd5c9c10380878bef1b03245d10c.tar.gz
chat-91b9514aafbefd5c9c10380878bef1b03245d10c.tar.bz2
chat-91b9514aafbefd5c9c10380878bef1b03245d10c.zip
Adding Posts table indexes for 20M rows. (#7728)
Diffstat (limited to 'store/sqlstore/store.go')
-rw-r--r--store/sqlstore/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/sqlstore/store.go b/store/sqlstore/store.go
index 93d3bf39f..cc43778f5 100644
--- a/store/sqlstore/store.go
+++ b/store/sqlstore/store.go
@@ -59,6 +59,7 @@ type SqlStore interface {
AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool
CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
+ CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool
CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
RemoveIndexIfExists(indexName string, tableName string) bool
GetAllConns() []*gorp.DbMap