Answer the question
In order to leave comments, you need to log in
Is it possible to disable Solr manually on some operations?
Sometimes solr slows down, for example:
def show
@item = Item.where(params[:id]).first
#Следующие 2 строчки после комментария увеличивают время загрузки страницы на
# 2 секунды при 50 записях в базе, хотя по полю view_count нет поиска
@item.views_count += 1
@item.save
render :show_item
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question