PLT-6355: Use separate Read Replicas for Search. (#6216)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
5ab7726c1e
Коммит
597641545d
@@ -1065,7 +1065,7 @@ func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchP
|
||||
|
||||
list := model.NewPostList()
|
||||
|
||||
_, err := s.GetReplica().Select(&posts, searchQuery, queryParams)
|
||||
_, err := s.GetSearchReplica().Select(&posts, searchQuery, queryParams)
|
||||
if err != nil {
|
||||
l4g.Warn(utils.T("store.sql_post.search.warn"), err.Error())
|
||||
// Don't return the error to the caller as it is of no use to the user. Instead return an empty set of search results.
|
||||
|
||||
Ссылка в новой задаче
Block a user