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_file_info_store.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'store/sql_file_info_store.go') diff --git a/store/sql_file_info_store.go b/store/sql_file_info_store.go index 78c36c08a..426ec5c76 100644 --- a/store/sql_file_info_store.go +++ b/store/sql_file_info_store.go @@ -30,6 +30,9 @@ func NewSqlFileInfoStore(sqlStore *SqlStore) FileInfoStore { } func (fs SqlFileInfoStore) CreateIndexesIfNotExists() { + fs.CreateIndexIfNotExists("idx_fileinfo_update_at", "FileInfo", "UpdateAt") + fs.CreateIndexIfNotExists("idx_fileinfo_create_at", "FileInfo", "CreateAt") + fs.CreateIndexIfNotExists("idx_fileinfo_delete_at", "FileInfo", "DeleteAt") } func (fs SqlFileInfoStore) Save(info *model.FileInfo) StoreChannel { -- cgit v1.2.3-1-g7c22