diff options
author | enahum <nahumhbl@gmail.com> | 2016-10-24 17:05:27 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-10-24 16:05:27 -0400 |
commit | 5fdb8223fc23a12945c00a66edbfc6ef299320f9 (patch) | |
tree | 8876e10dfd8f5d6e1db4a1a918f5b676f1631d02 /store/sql_file_info_store.go | |
parent | 510291e2e70f5fecd460afe95e33d310c2f98e3f (diff) | |
download | chat-5fdb8223fc23a12945c00a66edbfc6ef299320f9.tar.gz chat-5fdb8223fc23a12945c00a66edbfc6ef299320f9.tar.bz2 chat-5fdb8223fc23a12945c00a66edbfc6ef299320f9.zip |
Add database indexes to timestamp columns (#4314)
* Add database indexes to timestamp columns
* add indexes to session table
Diffstat (limited to 'store/sql_file_info_store.go')
-rw-r--r-- | store/sql_file_info_store.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |