SELECT
COUNT(1) AS cnt, params_controller, params_action
FROM minne_activity
WHERE TD_TIME_RANGE(
time, "2017-10-18 20:00:00", "2017-10-18 20:06:00", 'JST'
)
GROUP BY params_controller, params_action
ORDER BY cnt DESC;
DBDIF͢Δ
Rails.cache.fetch(cache_key, expires_in: 1.minutes) do
@curation.products.includes(:hogehoge).page(params[:page]).per(20)
end
wDBDIF@LFZQBSBNTͷ͔Βੜ
w࡞ͷใʹࡏݿͳͲؚ·ΕΔͨΊ͋Δఔ৽ͳσʔλ͕ཉ
͍͠ͷͰNJOVUFͰDBDIF͕ΕΔΑ͏ʹઃఆͨ͠