From 5fdb8223fc23a12945c00a66edbfc6ef299320f9 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 24 Oct 2016 17:05:27 -0300 Subject: Add database indexes to timestamp columns (#4314) * Add database indexes to timestamp columns * add indexes to session table --- store/sql_command_store.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'store/sql_command_store.go') diff --git a/store/sql_command_store.go b/store/sql_command_store.go index 410f9a287..0db0ba98e 100644 --- a/store/sql_command_store.go +++ b/store/sql_command_store.go @@ -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 { -- cgit v1.2.3-1-g7c22