• catatsuy's avatar
    'created_at DESC' is performed twice · 87ac5900
    catatsuy authored
    If you are already sorting in descending order in the created_at,
    it is run twice when you run the .recent.
    It has passed in the string 'created_at DESC'.
    Ruby on Rails is directly given to the SQL.
    It is a slow query in MySQL.
    87ac5900
event.rb 5.53 KB