Add database indexes to timestamp columns (#4314)

* Add database indexes to timestamp columns

* add indexes to session table
Этот коммит содержится в:
enahum
2016-10-24 17:05:27 -03:00
коммит произвёл Christopher Speller
родитель 510291e2e7
Коммит 5fdb8223fc
9 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@@ -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 {