Add database indexes to timestamp columns (#4314)

* Add database indexes to timestamp columns

* add indexes to session table
This commit is contained in:
enahum
2016-10-24 16:05:27 -04:00
committed by Christopher Speller
parent 510291e2e7
commit 5fdb8223fc
9 changed files with 31 additions and 0 deletions
+3
View File
@@ -36,6 +36,9 @@ func NewSqlCommandStore(sqlStore *SqlStore) CommandStore {
func (s SqlCommandStore) CreateIndexesIfNotExists() {
s.CreateIndexIfNotExists("idx_command_team_id", "Commands", "TeamId")
s.CreateIndexIfNotExists("idx_command_update_at", "Commands", "UpdateAt")
s.CreateIndexIfNotExists("idx_command_create_at", "Commands", "CreateAt")
s.CreateIndexIfNotExists("idx_command_delete_at", "Commands", "DeleteAt")
}
func (s SqlCommandStore) Save(command *model.Command) StoreChannel {