Add database indexes to timestamp columns (#4314)
* Add database indexes to timestamp columns * add indexes to session table
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
510291e2e7
Коммит
5fdb8223fc
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user