Add database indexes to timestamp columns (#4314)

* Add database indexes to timestamp columns

* add indexes to session table
Этот коммит содержится в:
enahum
2016-10-24 17:05:27 -03:00
коммит произвёл Christopher Speller
родитель 510291e2e7
Коммит 5fdb8223fc
9 изменённых файлов: 31 добавлений и 0 удалений

Просмотреть файл

@@ -41,6 +41,7 @@ func NewSqlPostStore(sqlStore *SqlStore) PostStore {
func (s SqlPostStore) CreateIndexesIfNotExists() {
s.CreateIndexIfNotExists("idx_posts_update_at", "Posts", "UpdateAt")
s.CreateIndexIfNotExists("idx_posts_create_at", "Posts", "CreateAt")
s.CreateIndexIfNotExists("idx_posts_delete_at", "Posts", "DeleteAt")
s.CreateIndexIfNotExists("idx_posts_channel_id", "Posts", "ChannelId")
s.CreateIndexIfNotExists("idx_posts_root_id", "Posts", "RootId")
s.CreateIndexIfNotExists("idx_posts_user_id", "Posts", "UserId")