Add database indexes to timestamp columns (#4314)
* Add database indexes to timestamp columns * add indexes to session table
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
510291e2e7
Коммит
5fdb8223fc
@@ -55,6 +55,9 @@ func NewSqlUserStore(sqlStore *SqlStore) UserStore {
|
||||
|
||||
func (us SqlUserStore) CreateIndexesIfNotExists() {
|
||||
us.CreateIndexIfNotExists("idx_users_email", "Users", "Email")
|
||||
us.CreateIndexIfNotExists("idx_users_update_at", "Users", "UpdateAt")
|
||||
us.CreateIndexIfNotExists("idx_users_create_at", "Users", "CreateAt")
|
||||
us.CreateIndexIfNotExists("idx_users_delete_at", "Users", "DeleteAt")
|
||||
|
||||
us.CreateFullTextIndexIfNotExists("idx_users_username_txt", "Users", USER_SEARCH_TYPE_USERNAME)
|
||||
us.CreateFullTextIndexIfNotExists("idx_users_all_names_txt", "Users", USER_SEARCH_TYPE_ALL)
|
||||
|
||||
Ссылка в новой задаче
Block a user